mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 08:26:08 +00:00
Reload the grid list of backups after the backup task completion
This allows visual feedback for first time users doing a backup.
This commit is contained in:
parent
6a4edbd195
commit
e83e60bfa1
@ -123,7 +123,12 @@ Ext.define('PVE.grid.BackupView', {
|
|||||||
nodename: nodename,
|
nodename: nodename,
|
||||||
vmid: vmid,
|
vmid: vmid,
|
||||||
vmtype: vmtype,
|
vmtype: vmtype,
|
||||||
storage: storagesel.getValue()
|
storage: storagesel.getValue(),
|
||||||
|
listeners : {
|
||||||
|
close: function() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
win.show();
|
win.show();
|
||||||
}
|
}
|
||||||
|
@ -76,13 +76,21 @@ Ext.define('PVE.window.Backup', {
|
|||||||
Ext.Msg.alert('Error',response.htmlStatus);
|
Ext.Msg.alert('Error',response.htmlStatus);
|
||||||
},
|
},
|
||||||
success: function(response, options) {
|
success: function(response, options) {
|
||||||
|
// close later so we reload the grid
|
||||||
|
// after the task has completed
|
||||||
|
me.hide();
|
||||||
|
|
||||||
var upid = response.result.data;
|
var upid = response.result.data;
|
||||||
|
|
||||||
var win = Ext.create('PVE.window.TaskViewer', {
|
var win = Ext.create('PVE.window.TaskViewer', {
|
||||||
upid: upid
|
upid: upid,
|
||||||
|
listeners: {
|
||||||
|
close: function() {
|
||||||
|
me.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
win.show();
|
win.show();
|
||||||
me.close();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user