1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

Searching icons and spinner fix

New: Manual search has its own icon on series details instead of a dropdown
Fixed: Automatic search icon will spin showing activity
This commit is contained in:
Mark McDowall
2014-09-05 08:28:58 -07:00
parent 3a287bf7e7
commit 86ef30480f
7 changed files with 37 additions and 57 deletions
-1
View File
@@ -52,7 +52,6 @@ define(
bindToCommand: function (options) {
var self = this;
var existingCommand = CommandCollection.findCommand(options.command);
if (existingCommand) {
+12 -3
View File
@@ -1,8 +1,9 @@
'use strict';
define(
[
'underscore',
'backbone'
], function (Backbone) {
], function (_, Backbone) {
return Backbone.Model.extend({
url: window.NzbDrone.ApiRoot + '/command',
@@ -18,8 +19,16 @@ define(
}
for (var key in command) {
if (key !== 'name' && command[key] !== this.get(key)) {
return false;
if (key !== 'name') {
if (Array.isArray(command[key])) {
if (_.difference(command[key], this.get(key)).length > 0) {
return false;
}
}
else if (command[key] !== this.get(key)) {
return false;
}
}
}