frequi_origin/src/components/ftbot/ReloadControl.vue

36 lines
768 B
Vue
Raw Normal View History

<template>
<div class="d-flex align-items-center ms-2">
2021-09-26 07:15:06 +00:00
<b-form-checkbox
v-model="autoRefreshLoc"
2022-11-20 10:29:34 +00:00
class="ms-auto float-end my-auto mt-1"
title="AutoRefresh"
2021-09-26 07:15:06 +00:00
></b-form-checkbox>
<b-button
class="m-1"
variant="secondary"
2021-09-26 07:15:06 +00:00
size="sm"
title="Auto Refresh All bots"
2022-04-18 11:23:42 +00:00
@click="botStore.allRefreshFull"
2021-09-26 07:15:06 +00:00
>
2023-05-09 16:25:28 +00:00
<i-mdi-refresh />
2021-09-26 07:15:06 +00:00
</b-button>
</div>
</template>
2023-05-09 17:58:23 +00:00
<script setup lang="ts">
import { computed } from 'vue';
2022-04-18 11:23:42 +00:00
import { useBotStore } from '@/stores/ftbotwrapper';
2022-04-15 18:09:28 +00:00
2023-05-09 17:58:23 +00:00
const botStore = useBotStore();
const autoRefreshLoc = computed({
get() {
return botStore.globalAutoRefresh;
},
set(newValue: boolean) {
botStore.setGlobalAutoRefresh(newValue);
2022-04-15 18:09:28 +00:00
},
});
</script>
<style scoped></style>