mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 21:16:35 +00:00
ui: realm sync job: code cleanup run-now handlers
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fc3fe9af77
commit
1e7c70f5c2
@ -58,16 +58,13 @@ Ext.define('PVE.dc.RealmSyncJobView', {
|
|||||||
params,
|
params,
|
||||||
waitMsgTarget: view,
|
waitMsgTarget: view,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
|
||||||
success: function(response, options) {
|
success: function(response, options) {
|
||||||
let upid = response.result.data;
|
Ext.create('Proxmox.window.TaskProgress', {
|
||||||
let win = Ext.create('Proxmox.window.TaskProgress', {
|
autoShow: true,
|
||||||
upid: upid,
|
upid: response.result.data,
|
||||||
taskDone: () => { me.reload(); },
|
taskDone: () => { me.reload(); },
|
||||||
});
|
});
|
||||||
win.show();
|
|
||||||
},
|
|
||||||
failure: function(response, opts) {
|
|
||||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user