2020-06-12 17:40:18 +00:00
|
|
|
<template>
|
2022-11-18 18:48:15 +00:00
|
|
|
<div class="d-flex align-items-center ms-2">
|
2021-09-26 07:15:06 +00:00
|
|
|
<b-form-checkbox
|
2021-08-29 12:39:52 +00:00
|
|
|
v-model="autoRefreshLoc"
|
2022-11-20 10:29:34 +00:00
|
|
|
class="ms-auto float-end my-auto mt-1"
|
2021-08-29 12:39:52 +00:00
|
|
|
title="AutoRefresh"
|
2021-09-26 07:15:06 +00:00
|
|
|
></b-form-checkbox>
|
|
|
|
<b-button
|
|
|
|
class="m-1"
|
2021-08-29 12:39:52 +00:00
|
|
|
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>
|
2020-06-12 17:40:18 +00:00
|
|
|
</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
|
|
|
},
|
|
|
|
});
|
2020-06-12 17:40:18 +00:00
|
|
|
</script>
|
|
|
|
|
2020-07-26 08:48:07 +00:00
|
|
|
<style scoped></style>
|