From c4f800f9488515ba07c37b1e0566bc16c9654bcb Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Thu, 15 Jul 2021 10:49:20 -0300 Subject: [PATCH] stop loading before prompt to re-enable buttons --- navigator/components/NavWindow.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/navigator/components/NavWindow.js b/navigator/components/NavWindow.js index d10479e..d1b1b50 100644 --- a/navigator/components/NavWindow.js +++ b/navigator/components/NavWindow.js @@ -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;