frequi_origin/src/components/ftbot/ReloadControl.vue
2023-05-09 19:58:23 +02:00

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>