mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Don't use undefined name when saving indexer
This commit is contained in:
parent
7ef2fb0242
commit
e4b2c30616
@ -8,8 +8,15 @@ define([
|
|||||||
initialize: function () {
|
initialize: function () {
|
||||||
var name = this.get('name');
|
var name = this.get('name');
|
||||||
|
|
||||||
this.successMessage = 'Saved indexer: ' + name;
|
if (name) {
|
||||||
this.errorMessage = 'Couldn\'t save indexer: ' + name;
|
this.successMessage = 'Saved indexer: ' + name;
|
||||||
|
this.errorMessage = 'Couldn\'t save indexer: ' + name;
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
this.successMessage = 'Saved indexer';
|
||||||
|
this.errorMessage = 'Couldn\'t save indexer';
|
||||||
|
}
|
||||||
|
|
||||||
this.baseInitialize.call(this);
|
this.baseInitialize.call(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user