You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
580 B
24 lines
580 B
"use strict";
|
|
define(['app'], function () {
|
|
NzbDrone.Quality.QualityProfileModel = Backbone.DeepModel.extend({
|
|
|
|
mutators: {
|
|
allowed: function () {
|
|
return _.where(this.get('qualities'), { allowed: true });
|
|
},
|
|
|
|
cutoffName: function () {
|
|
return _.findWhere(this.get('qualities'), { id: this.get('cutoff') }).name;
|
|
}
|
|
},
|
|
|
|
defaults: {
|
|
id : null,
|
|
name : '',
|
|
//'qualities.allowed': false,
|
|
cutoff: null
|
|
}
|
|
});
|
|
});
|
|
|