mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Resync'd UI and API
This commit is contained in:
parent
c3214a2e88
commit
000b7bf9e0
7 changed files with 19 additions and 11 deletions
|
@ -29,12 +29,12 @@
|
|||
{{#if bestDateString}}
|
||||
<span class="label">{{bestDateString}}</span>
|
||||
{{else}}
|
||||
<span class="label label-inverse">{{status}}</span>
|
||||
<span class="label label-inverse">{{statusText}}</span>
|
||||
{{/if}}
|
||||
<span class="label label-info">Season {{numberOfSeasons}}</span>
|
||||
<span class="label label-info">Season {{seasonCount}}</span>
|
||||
{{else}}
|
||||
<span class="label label-important">{{status}}</span>
|
||||
<span class="label label-info">{{numberOfSeasons}} Seasons</span>
|
||||
<span class="label label-important">{{statusText}}</span>
|
||||
<span class="label label-info">{{seasonCount}} Seasons</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="span2">
|
||||
|
|
|
@ -35,11 +35,18 @@
|
|||
return "http://trakt.tv/show/" + this.get('titleSlug');
|
||||
},
|
||||
isContinuing : function () {
|
||||
if (this.get('status') === 'Continuing'){
|
||||
if (this.get('status') === 0){
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
statusText: function () {
|
||||
if (this.get('status') === 0) {
|
||||
return 'Continuing';
|
||||
}
|
||||
|
||||
return 'Ended';
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -48,7 +55,8 @@
|
|||
episodeCount : 0,
|
||||
qualityProfiles : qualityProfileCollection,
|
||||
rootFolders : rootFolders,
|
||||
isExisting : false
|
||||
isExisting : false,
|
||||
status: 0
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ define('app', function () {
|
|||
if (!monitored) {
|
||||
return '<i class="icon-pause grid-icon" title="Not Monitored"></i>';
|
||||
}
|
||||
if (status === 'Continuing') {
|
||||
if (status === 0) {
|
||||
return '<i class="icon-play grid-icon" title="Continuing"></i>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue