Radarr/UI/Quality/QualitySizeModel.js

17 lines
434 B
JavaScript
Raw Normal View History

define(['app'], function () {
NzbDrone.Quality.QualitySizeModel = Backbone.Model.extend({
initialize: function () {
this.validators = {};
},
mutators: {
thirtyMinuteSize: function () {
return this.get('maxSize') * 30;
},
sixtyMinuteSize : function () {
return this.get('maxSize') * 60;
}
}
});
});