From 8000e711fc123601305df1e93e484acbd6e69eb1 Mon Sep 17 00:00:00 2001 From: ryogx <89699088+ryogx@users.no-reply.github.com> Date: Wed, 27 Oct 2021 03:36:46 +0000 Subject: [PATCH] Add progress circle to dump button --- src/components/settings.vue | 12 +++++++++++- src/gateway/gateway.js | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/settings.vue b/src/components/settings.vue index 56dc123..3da49c5 100644 --- a/src/components/settings.vue +++ b/src/components/settings.vue @@ -86,6 +86,14 @@
+
@@ -164,7 +172,8 @@ export default { notify_no_payment_id: null, notify_empty_password: null, timeout: 10, - isVisible: false + isVisible: false, + dump_progress: false } }, mounted: function () { @@ -243,6 +252,7 @@ export default { this.isVisible = false }, dump() { + this.dump_progress = true this.$gateway.send("core", "dump_debug_info", {}); }, showPeerDetails (entry) { diff --git a/src/gateway/gateway.js b/src/gateway/gateway.js index b8ed7d8..383f74b 100644 --- a/src/gateway/gateway.js +++ b/src/gateway/gateway.js @@ -228,6 +228,7 @@ export class Gateway { break case "dump_completed": + this.dump_progress = false if (process.platform === "darwin") { // Workaround for buttons not appearning on macOS Dialog.create({