]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: backup job: use boolean expression directly for boolean result
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 10:43:39 +0000 (12:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 17:49:33 +0000 (19:49 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/panel/BackupAdvancedOptions.js

index 785c991fab4e7c2e1db2b163ddfe6bf88b6ea0ff..d29c7ddbaa1e969ede73acbf1f3188ced9fe0799 100644 (file)
@@ -59,11 +59,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
     },
 
     updateCompression: function(value, disabled) {
-       if (!disabled && value === 'zstd') {
-           this.lookup('zstdThreadCount').setDisabled(false);
-       } else {
-           this.lookup('zstdThreadCount').setDisabled(true);
-       }
+       this.lookup('zstdThreadCount').setDisabled(disabled || value !== 'zstd');
     },
 
     items: [