1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Patch/bulk import qol (#785)

* Filter out existing movies upon import
* Update collection based on what is imported
* Ensure root folders are loaded before collectionview

TODO:
* Ensure grid region exists
* Return information about what wasn't imported
* Filter collection based on duplicates
This commit is contained in:
Tim Turner
2017-02-21 15:31:31 -05:00
committed by GitHub
parent 3edc2b80cf
commit 056fb154a8
9 changed files with 121 additions and 46 deletions
+7 -7
View File
@@ -21,7 +21,7 @@ module.exports = NzbDroneCell.extend({
},
_updateId : function() {
var field = this.$el.find('.x-tmdbId');
var field = this.$el.find('.x-tmdbId');
var data = field.val();
var promise = $.ajax({
@@ -31,7 +31,7 @@ module.exports = NzbDroneCell.extend({
//field.spinForPromise(promise);
field.prop("disabled", true)
field.prop("disabled", true);
var icon = this.$(".icon-sonarr-info");
@@ -48,15 +48,15 @@ module.exports = NzbDroneCell.extend({
promise.success(function(response) {
_self.model.set(response);
_self.model.set('monitored', cacheMonitored); //reset to the previous monitored value
_self.model.set('profileId', cacheProfile);
_self.model.set('path', cachePath);
_self.model.set('movieFile', cacheFile); // may be unneccessary.
field.prop("disabled", false)
_self.model.set('profileId', cacheProfile);
_self.model.set('path', cachePath);
_self.model.set('movieFile', cacheFile); // may be unneccessary.
field.prop("disabled", false);
});
promise.error(function(request, status, error) {
console.error("Status: " + status, "Error: " + error);
field.prop("disabled", false)
field.prop("disabled", false);
});
}
});