mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Sugared quality size knobs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user