]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: followup: minor code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Oct 2019 10:15:54 +0000 (11:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Oct 2019 10:15:54 +0000 (11:15 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/lxc/DNS.js

index 8bde72f9dc51f7d9b28911f45edb24233bf54c3e..f5b85db5cfe1d40eae7837695733441c171d6aca 100644 (file)
@@ -253,10 +253,12 @@ Ext.define('PVE.lxc.DNS', {
                edit_btn.disable();
                return;
            }
-           var key = rec.data.key;
-           var rowdef = rows[key];
-           var pending = rec.data['delete'] || me.hasPendingChanges(key);
+           let key = rec.data.key;
+
+           let rowdef = rows[key];
            edit_btn.setDisabled(!rowdef.editor);
+
+           let pending = rec.data['delete'] || me.hasPendingChanges(key);
            revert_btn.setDisabled(!pending);
        };