]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: window/ceph install: eslint fixes and code cleanup/refactoring/modernize
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 May 2021 14:08:14 +0000 (16:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 May 2021 14:52:49 +0000 (16:52 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/CephInstall.js

index 27d1935eac247aae0b8d539a8a293e0ccd25abfd..1b8abc41f4e341df1b8d1d4d580e3d017e1be0af 100644 (file)
@@ -65,15 +65,15 @@ Ext.define('PVE.ceph.Install', {
                nodename: '{nodename}',
            },
            handler: function() {
-               var me = this.up('pveCephInstallWindow');
-               var win = Ext.create('PVE.ceph.CephInstallWizard', {
-                   nodename: me.nodename,
+               let view = this.up('pveCephInstallWindow');
+               let wizzard = Ext.create('PVE.ceph.CephInstallWizard', {
+                   nodename: view.nodename,
                });
-               win.getViewModel().set('isInstalled', this.getViewModel().get('isInstalled'));
-               win.show();
-               me.mon(win, 'beforeClose', function() {
-                   me.fireEvent("cephInstallWindowClosed");
-                   me.close();
+               wizzard.getViewModel().set('isInstalled', this.getViewModel().get('isInstalled'));
+               wizzard.show();
+               view.mon(wizzard, 'beforeClose', function() {
+                   view.fireEvent("cephInstallWindowClosed");
+                   view.close();
                });
            },
        },