Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/9cf575c096bd36f4ed1b36a93e068935401eb16d
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
36 additions and
0 deletions
@ -33,6 +33,10 @@ module.exports = Marionette.ItemView.extend({
this . $el . addClass ( this . model . get ( 'className' ) ) ;
}
if ( this . model . get ( 'tooltip' ) ) {
this . $el . attr ( 'title' , this . model . get ( 'tooltip' ) ) ;
}
var command = this . model . get ( 'command' ) ;
if ( command ) {
var properties = _ . extend ( { name : command } , this . model . get ( 'properties' ) ) ;
@ -1,3 +1,4 @@
var $ = require ( 'jquery' ) ;
var _ = require ( 'underscore' ) ;
var Marionette = require ( 'marionette' ) ;
var Backgrid = require ( 'backgrid' ) ;
@ -113,6 +114,14 @@ module.exports = Marionette.Layout.extend({
ownerContext : this ,
className : 'x-search-missing'
} ,
{
title : 'Toggle Selected' ,
icon : 'icon-sonarr-monitored' ,
tooltip : 'Toggle monitored status of selected' ,
callback : this . _toggleMonitoredOfSelected ,
ownerContext : this ,
className : 'x-unmonitor-selected'
} ,
{
title : 'Season Pass' ,
icon : 'icon-sonarr-monitored' ,
@ -191,5 +200,28 @@ module.exports = Marionette.Layout.extend({
'One API request to each indexer will be used for each episode. ' + 'This cannot be stopped once started.' ) ) {
CommandController . Execute ( 'missingEpisodeSearch' , { name : 'missingEpisodeSearch' } ) ;
}
} ,
_toggleMonitoredOfSelected : function ( ) {
var selected = this . missingGrid . getSelectedModels ( ) ;
if ( selected . length === 0 ) {
Messenger . show ( {
type : 'error' ,
message : 'No episodes selected'
} ) ;
return ;
}
var promises = [ ] ;
var self = this ;
_ . each ( selected , function ( episode ) {
episode . set ( 'monitored' , ! episode . get ( 'monitored' ) ) ;
promises . push ( episode . save ( ) ) ;
} ) ;
$ . when ( promises ) . done ( function ( ) {
self . collection . fetch ( ) ;
} ) ;
}
} ) ;