show load spinner while deleting

This commit is contained in:
joshuaboud 2021-07-20 09:44:09 -03:00
parent 04bd831a9c
commit 6da417a9e6
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -404,6 +404,7 @@ export class NavWindow {
if (!await this.modal_prompt.confirm(prompt, "This cannot be undone. Are you sure?", true)) {
return;
}
this.start_load();
for (let target of this.selected_entries) {
try {
await target.rm();
@ -411,6 +412,7 @@ export class NavWindow {
this.modal_prompt.alert(e);
}
}
this.stop_load();
this.refresh();
}