mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
cleaned up qualityprofile response format.
This commit is contained in:
parent
bdf86aa4ba
commit
3c53e6009d
8 changed files with 45 additions and 22 deletions
|
@ -2,16 +2,6 @@
|
|||
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 : '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue