stop loading before prompt to re-enable buttons

This commit is contained in:
joshuaboud 2021-07-15 10:49:20 -03:00
parent f567dd1e7a
commit c4f800f948
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -542,6 +542,7 @@ export class NavWindow {
}
async paste_clipboard() {
this.start_load();
var cmd = ["/usr/share/cockpit/navigator/scripts/paste.py"];
var dest = this.pwd().path_str();
if (this.copy_or_move === "move") {
@ -570,7 +571,9 @@ export class NavWindow {
default: false
}
}
this.stop_load();
let responses = await this.modal_prompt.prompt("Overwrite?", requests);
this.start_load();
if (responses === null) {
proc.input(JSON.stringify("abort") + "\n");
return;