mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 12:35:15 +00:00
36 lines
768 B
Vue
36 lines
768 B
Vue
<template>
|
|
<div class="d-flex align-items-center ms-2">
|
|
<b-form-checkbox
|
|
v-model="autoRefreshLoc"
|
|
class="ms-auto float-end my-auto mt-1"
|
|
title="AutoRefresh"
|
|
></b-form-checkbox>
|
|
<b-button
|
|
class="m-1"
|
|
variant="secondary"
|
|
size="sm"
|
|
title="Auto Refresh All bots"
|
|
@click="botStore.allRefreshFull"
|
|
>
|
|
<i-mdi-refresh />
|
|
</b-button>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
|
|
|
const botStore = useBotStore();
|
|
const autoRefreshLoc = computed({
|
|
get() {
|
|
return botStore.globalAutoRefresh;
|
|
},
|
|
set(newValue: boolean) {
|
|
botStore.setGlobalAutoRefresh(newValue);
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style scoped></style>
|