mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-16 21:16:24 -04:00
De-dupe Tags
Fixed: Remove duplicate tags and prevent new ones from being created
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
var Backbone = require('backbone');
|
||||
var Backbone = require('backbone');
|
||||
var TagModel = require('./TagModel');
|
||||
var ApiData = require('../Shared/ApiData');
|
||||
|
||||
module.exports = (function(){
|
||||
var Collection = Backbone.Collection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/tag',
|
||||
model : TagModel
|
||||
});
|
||||
return new Collection(ApiData.get('tag'));
|
||||
}).call(this);
|
||||
require('../Mixins/backbone.signalr.mixin');
|
||||
|
||||
var collection = Backbone.Collection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/tag',
|
||||
model : TagModel,
|
||||
|
||||
comparator : function(model){
|
||||
return model.get('label');
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = new collection(ApiData.get('tag')).bindSignalR();
|
||||
|
||||
Reference in New Issue
Block a user