]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: realm sync job: code cleanup run-now handlers
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Jun 2023 15:41:49 +0000 (17:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Jun 2023 15:41:49 +0000 (17:41 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/RealmSyncJob.js

index 738f0bfa5a2f900f77346e676bd412bcc5f522e4..712bf1121d87270c4cdfc6e84e3fab7ee2f19eb3 100644 (file)
@@ -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);
                },
            });
        },