Refresh balance when switching to the balance chart

This commit is contained in:
Matthias 2023-11-17 20:00:41 +01:00
parent b6b98a1891
commit 68d666ae65

View File

@ -21,7 +21,7 @@
<i-mdi-eye v-else />
</b-button>
<b-button class="float-end" size="sm" @click="botStore.activeBot.getBalance">
<b-button class="float-end" size="sm" @click="refreshBalance">
<i-mdi-refresh />
</b-button>
</div>
@ -122,4 +122,12 @@ const tableFields = computed<TableField[]>(() => {
},
];
});
async function refreshBalance() {
botStore.activeBot.getBalance();
}
onMounted(() => {
refreshBalance();
});
</script>