]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: fix layout reset master
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 22 Apr 2024 11:06:16 +0000 (13:06 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 22 Apr 2024 11:39:20 +0000 (13:39 +0200)
we have to iterate over the keys of the state object here, not over the
values. This meant one could not reset the layout from the settings
window.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/window/Settings.js

index 763cefabc3c75c756fa56123c72192d28f468bce..c785dd881789bbe1f469075c6e9d47a8a8dd8ead 100644 (file)
@@ -96,7 +96,7 @@ Ext.define('PBS.window.Settings', {
                click: function() {
                    let blacklist = ['login-username'];
                    let sp = Ext.state.Manager.getProvider();
-                   for (const state of Object.values(sp.state)) {
+                   for (const state of Object.keys(sp.state)) {
                        if (blacklist.indexOf(state) !== -1) {
                            continue;
                        }