1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 01:38:24 +00:00
Radarr/UI/Quality/qualityProfileModel.js

24 lines
580 B
JavaScript
Raw Normal View History

2013-05-01 22:42:30 +00:00
"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
}
});
});