Sugared quality size knobs

This commit is contained in:
Mark McDowall
2013-06-28 10:25:09 -07:00
parent 2ce5f6d416
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);
}
}
});