mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-27 23:54:20 +02:00
show load spinner while deleting
This commit is contained in:
parent
04bd831a9c
commit
6da417a9e6
@ -404,6 +404,7 @@ export class NavWindow {
|
|||||||
if (!await this.modal_prompt.confirm(prompt, "This cannot be undone. Are you sure?", true)) {
|
if (!await this.modal_prompt.confirm(prompt, "This cannot be undone. Are you sure?", true)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.start_load();
|
||||||
for (let target of this.selected_entries) {
|
for (let target of this.selected_entries) {
|
||||||
try {
|
try {
|
||||||
await target.rm();
|
await target.rm();
|
||||||
@ -411,6 +412,7 @@ export class NavWindow {
|
|||||||
this.modal_prompt.alert(e);
|
this.modal_prompt.alert(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.stop_load();
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user