mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 16:42:46 +00:00
Fixed: Show unlimited when quality max size is set to 0
This commit is contained in:
parent
b185748822
commit
590a39a47e
2 changed files with 9 additions and 1 deletions
|
@ -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…
Reference in a new issue