1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Quality/QualitySizeModel.js

31 lines
769 B
JavaScript
Raw Normal View History

"use strict";
define(
[
'backbone'
], function (Backbone) {
return Backbone.Model.extend({
mutators: {
thirtyMinuteSize: function () {
2013-06-28 20:25:09 +03:00
var maxSize = this.get('maxSize');
if (maxSize === 0) {
return 'No Limit';
}
return (maxSize * 1024 * 1024 * 30).bytes(1);
},
sixtyMinuteSize : function () {
2013-06-28 20:25:09 +03:00
var maxSize = this.get('maxSize');
if (maxSize === 0) {
return 'No Limit';
}
return (maxSize * 1024 * 1024 * 60).bytes(1);
}
}
});
});