mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Refresh balance when switching to the balance chart
This commit is contained in:
parent
b6b98a1891
commit
68d666ae65
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user