From 1e7c70f5c20b2800e2ac68b8c2ae4b5a391c6505 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 14 Jun 2023 17:41:49 +0200 Subject: [PATCH] ui: realm sync job: code cleanup run-now handlers Signed-off-by: Thomas Lamprecht --- www/manager6/dc/RealmSyncJob.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/www/manager6/dc/RealmSyncJob.js b/www/manager6/dc/RealmSyncJob.js index 738f0bfa..712bf112 100644 --- a/www/manager6/dc/RealmSyncJob.js +++ b/www/manager6/dc/RealmSyncJob.js @@ -58,16 +58,13 @@ Ext.define('PVE.dc.RealmSyncJobView', { params, waitMsgTarget: view, method: 'POST', + failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus), success: function(response, options) { - let upid = response.result.data; - let win = Ext.create('Proxmox.window.TaskProgress', { - upid: upid, + Ext.create('Proxmox.window.TaskProgress', { + autoShow: true, + upid: response.result.data, taskDone: () => { me.reload(); }, }); - win.show(); - }, - failure: function(response, opts) { - Ext.Msg.alert(gettext('Error'), response.htmlStatus); }, }); },