mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-30 00:55:30 +02:00
stop loading before prompt to re-enable buttons
This commit is contained in:
parent
f567dd1e7a
commit
c4f800f948
@ -542,6 +542,7 @@ export class NavWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async paste_clipboard() {
|
async paste_clipboard() {
|
||||||
|
this.start_load();
|
||||||
var cmd = ["/usr/share/cockpit/navigator/scripts/paste.py"];
|
var cmd = ["/usr/share/cockpit/navigator/scripts/paste.py"];
|
||||||
var dest = this.pwd().path_str();
|
var dest = this.pwd().path_str();
|
||||||
if (this.copy_or_move === "move") {
|
if (this.copy_or_move === "move") {
|
||||||
@ -570,7 +571,9 @@ export class NavWindow {
|
|||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.stop_load();
|
||||||
let responses = await this.modal_prompt.prompt("Overwrite?", requests);
|
let responses = await this.modal_prompt.prompt("Overwrite?", requests);
|
||||||
|
this.start_load();
|
||||||
if (responses === null) {
|
if (responses === null) {
|
||||||
proc.input(JSON.stringify("abort") + "\n");
|
proc.input(JSON.stringify("abort") + "\n");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user