Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/0ffb72bca17b1a52b7a35116a03c56a829a20f4a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
7 changed files with
62 additions and
7 deletions
@ -19,6 +19,7 @@ namespace NzbDrone.Api.Indexers
GetResourceAll = GetAll ;
CreateResource = CreateIndexer ;
UpdateResource = UpdateIndexer ;
DeleteResource = DeleteIndexer ;
}
private List < IndexerResource > GetAll ( )
@ -80,5 +81,10 @@ namespace NzbDrone.Api.Indexers
return indexer ;
}
private void DeleteIndexer ( int id )
{
_indexerService . Delete ( id ) ;
}
}
}
@ -29,6 +29,7 @@ namespace NzbDrone.Core.Indexers
List < Indexer > Schema ( ) ;
Indexer Create ( Indexer indexer ) ;
Indexer Update ( Indexer indexer ) ;
void Delete ( int id ) ;
}
public class IndexerService : IIndexerService , IHandle < ApplicationStartedEvent >
@ -81,7 +82,6 @@ namespace NzbDrone.Core.Indexers
return indexers ;
}
public Indexer Create ( Indexer indexer )
{
var definition = new IndexerDefinition
@ -108,6 +108,11 @@ namespace NzbDrone.Core.Indexers
return indexer ;
}
public void Delete ( int id )
{
_indexerRepository . Delete ( id ) ;
}
private Indexer ToIndexer ( IndexerDefinition definition )
{
var indexer = new Indexer ( ) ;
@ -0,0 +1,11 @@
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button >
< h3 > Delete Indexer< / h3 >
< / div >
< div class = "modal-body" >
< p > Are you sure you want to delete '{{name}}'?< / p >
< / div >
< div class = "modal-footer" >
< button class = "btn" data-dismiss = "modal" > cancel< / button >
< button class = "btn btn-danger x-confirm-delete" > delete< / button >
< / div >
@ -0,0 +1,19 @@
'use strict' ;
define ( [ 'app' , 'marionette' ] , function ( App , Marionette ) {
return Marionette . ItemView . extend ( {
template : 'Settings/Notifications/DeleteTemplate' ,
events : {
'click .x-confirm-delete' : '_removeIndexer'
} ,
_removeIndexer : function ( ) {
this . model . destroy ( {
wait : true ,
success : function ( ) {
App . modalRegion . closeModal ( ) ;
}
} ) ;
}
} ) ;
} ) ;
@ -1,10 +1,24 @@
'use strict' ;
define ( [ 'marionette' , 'Mixins/AsModelBoundView' ] , function ( Marionette , AsModelBoundView ) {
define ( [
'app' ,
'marionette' ,
'Settings/Notifications/DeleteView' ,
'Mixins/AsModelBoundView' ] ,
function ( App , Marionette , DeleteView , AsModelBoundView ) {
var view = Marionette . ItemView . extend ( {
template : 'Settings/Indexers/ItemTemplate' ,
tagName : 'li'
tagName : 'li' ,
events : {
'click .x-delete' : '_deleteIndexer'
} ,
_deleteIndexer : function ( ) {
var view = new DeleteView ( { model : this . model } ) ;
App . modalRegion . show ( view ) ;
}
} ) ;
return AsModelBoundView . call ( view ) ;
@ -1,9 +1,9 @@
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button >
< h3 > Remove: {{name}} < / h3 >
< h3 > Delete Notification < / h3 >
< / div >
< div class = "modal-body" >
< p > Are you sure you want to remov e '{{name}}'?< / p >
< p > Are you sure you want to delet e '{{name}}'?< / p >
< / div >
< div class = "modal-footer" >
< button class = "btn" data-dismiss = "modal" > cancel< / button >
@ -4,10 +4,10 @@ define(['app', 'marionette'], function (App, Marionette) {
template : 'Settings/Notifications/DeleteTemplate' ,
events : {
'click .x-confirm-delete' : ' removeNotification'
'click .x-confirm-delete' : ' _ removeNotification'
} ,
removeNotification: function ( ) {
_ removeNotification: function ( ) {
this . model . destroy ( {
wait : true ,
success : function ( ) {