Sugared quality size knobs

This commit is contained in:
Mark McDowall 2013-06-28 10:25:09 -07:00
commit f65911aff7
3 changed files with 29 additions and 9 deletions

View file

@ -8,10 +8,22 @@ define(
mutators: {
thirtyMinuteSize: function () {
return this.get('maxSize') * 30;
var maxSize = this.get('maxSize');
if (maxSize === 0) {
return 'No Limit';
}
return (maxSize * 1024 * 1024 * 30).bytes(1);
},
sixtyMinuteSize : function () {
return this.get('maxSize') * 60;
var maxSize = this.get('maxSize');
if (maxSize === 0) {
return 'No Limit';
}
return (maxSize * 1024 * 1024 * 60).bytes(1);
}
}
});