mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 08:33:21 +00:00
Fixed: Add series won't incorrectly mark the series as existing when it fails to add
This commit is contained in:
parent
d494023504
commit
d9b9ffe8a2
1 changed files with 2 additions and 3 deletions
|
@ -147,12 +147,11 @@ define(
|
||||||
this.model.set('seasonFolder', seasonFolder);
|
this.model.set('seasonFolder', seasonFolder);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
SeriesCollection.add(this.model);
|
|
||||||
|
|
||||||
var promise = this.model.save();
|
var promise = this.model.save();
|
||||||
|
|
||||||
promise.done(function () {
|
promise.done(function () {
|
||||||
|
SeriesCollection.add(self.model);
|
||||||
|
|
||||||
self.close();
|
self.close();
|
||||||
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue