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:
@@ -52,7 +52,6 @@ define(
|
||||
bindToCommand: function (options) {
|
||||
|
||||
var self = this;
|
||||
|
||||
var existingCommand = CommandCollection.findCommand(options.command);
|
||||
|
||||
if (existingCommand) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user