mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Toggle episode monitored status from episode details
This commit is contained in:
parent
44950c212e
commit
17ffdbc89e
4 changed files with 53 additions and 14 deletions
|
@ -72,6 +72,10 @@ define(
|
|||
_.each(this.episodeCollection.models, function (episode) {
|
||||
episode.set({ hideSeriesLink: true, series: options.series });
|
||||
});
|
||||
|
||||
this.episodeCollection.on('sync', function () {
|
||||
this.render();
|
||||
}, this);
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
|
@ -137,8 +141,6 @@ define(
|
|||
},
|
||||
|
||||
_setSeasonMonitoredState: function () {
|
||||
var monitored = this.model.get('monitored');
|
||||
|
||||
this.ui.seasonMonitored.removeClass('icon-spinner icon-spin');
|
||||
|
||||
if (this.model.get('monitored')) {
|
||||
|
|
|
@ -103,7 +103,7 @@ define(
|
|||
_setMonitoredState: function () {
|
||||
var monitored = this.model.get('monitored');
|
||||
|
||||
this.ui.monitored.removeClass('icon-spin');
|
||||
this.ui.monitored.removeClass('icon-spin icon-spinner');
|
||||
|
||||
if (this.model.get('monitored')) {
|
||||
this.ui.monitored.addClass('icon-bookmark');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue