1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed EpisodeStatusCell

This commit is contained in:
Mark McDowall 2013-07-16 20:25:42 -07:00
parent 7ae7c488f3
commit 4fedccf6d3

View File

@ -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';
} }