From 3405edbefba9641aefb836a03fbe5d71182ef6ce Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 19 May 2021 16:08:14 +0200 Subject: [PATCH] ui: window/ceph install: eslint fixes and code cleanup/refactoring/modernize Signed-off-by: Thomas Lamprecht --- www/manager6/window/CephInstall.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/www/manager6/window/CephInstall.js b/www/manager6/window/CephInstall.js index 27d1935e..1b8abc41 100644 --- a/www/manager6/window/CephInstall.js +++ b/www/manager6/window/CephInstall.js @@ -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(); }); }, }, -- 2.39.2