mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07: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:
parent
3a287bf7e7
commit
86ef30480f
7 changed files with 37 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue