mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Fixed: Show unlimited when quality max size is set to 0
This commit is contained in:
parent
b185748822
commit
590a39a47e
@ -9,7 +9,7 @@ define(
|
|||||||
], function (Marionette, AsModelBoundView, fileSize) {
|
], function (Marionette, AsModelBoundView, fileSize) {
|
||||||
|
|
||||||
var view = Marionette.ItemView.extend({
|
var view = Marionette.ItemView.extend({
|
||||||
template: 'Settings/Quality/Definition/QualityDefinitionTemplate',
|
template: 'Settings/Quality/Definition/QualityDefinitionViewTemplate',
|
||||||
className: 'row',
|
className: 'row',
|
||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
@ -61,6 +61,14 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
if (maxSize === 0)
|
||||||
|
{
|
||||||
|
this.ui.thirtyMinuteMaxSize.html('Unlimited');
|
||||||
|
this.ui.sixtyMinuteMaxSize.html('Unlimited');
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var maxBytes = maxSize * 1024 * 1024;
|
var maxBytes = maxSize * 1024 * 1024;
|
||||||
var maxThirty = fileSize(maxBytes * 30, 1, false);
|
var maxThirty = fileSize(maxBytes * 30, 1, false);
|
||||||
var maxSixty = fileSize(maxBytes * 60, 1, false);
|
var maxSixty = fileSize(maxBytes * 60, 1, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user