Skip to content

Commit

Permalink
Add progress circle to dump button
Browse files Browse the repository at this point in the history
  • Loading branch information
ryogx committed Nov 18, 2021
1 parent d94d7c5 commit 8000e71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@
</div>
<div>
<q-btn color="primary" @click="dump" label="Dump Debug Info" />
<q-circular-progress
indeterminate
size="50px"
color="blue"
class="q-ma-md"
v-if="dump_progress==true"
display=none
/>
</div>

</div>
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -243,6 +252,7 @@ export default {
this.isVisible = false
},
dump() {
this.dump_progress = true
this.$gateway.send("core", "dump_debug_info", {});
},
showPeerDetails (entry) {
Expand Down
1 change: 1 addition & 0 deletions src/gateway/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8000e71

Please sign in to comment.