mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed EpisodeStatusCell
This commit is contained in:
@@ -17,13 +17,14 @@ define(
|
|||||||
var tooltip;
|
var tooltip;
|
||||||
|
|
||||||
var hasAired = Date.create(this.model.get('airDate')).isBefore(Date.create());
|
var hasAired = Date.create(this.model.get('airDate')).isBefore(Date.create());
|
||||||
|
var hasFile = this.model.get('hasFile');
|
||||||
|
|
||||||
if (hasAired) {
|
if (hasFile) {
|
||||||
icon = 'icon-ok';
|
icon = 'icon-ok';
|
||||||
tooltip = 'Episode downloaded';
|
tooltip = 'Episode downloaded';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (this.model.get('hasAired')) {
|
if (hasAired) {
|
||||||
icon = 'icon-warning-sign';
|
icon = 'icon-warning-sign';
|
||||||
tooltip = 'Episode missing from disk';
|
tooltip = 'Episode missing from disk';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user