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-10-30 13:26:23 +00:00
|
|
|
class="ms-auto float-end my-auto"
|
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
|
|
|
>
|
|
|
|
<RefreshIcon :size="16" />
|
|
|
|
</b-button>
|
2020-06-12 17:40:18 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-07-19 13:30:34 +00:00
|
|
|
<script lang="ts">
|
2020-11-13 19:19:16 +00:00
|
|
|
import RefreshIcon from 'vue-material-design-icons/Refresh.vue';
|
2022-07-07 18:44:19 +00:00
|
|
|
import { defineComponent, computed } from 'vue';
|
2022-04-18 11:23:42 +00:00
|
|
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
2022-04-15 18:09:28 +00:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'ReloadControl',
|
|
|
|
components: { RefreshIcon },
|
|
|
|
setup() {
|
2022-04-18 11:23:42 +00:00
|
|
|
const botStore = useBotStore();
|
2022-04-15 18:09:28 +00:00
|
|
|
const autoRefreshLoc = computed({
|
|
|
|
get() {
|
2022-04-18 11:23:42 +00:00
|
|
|
return botStore.globalAutoRefresh;
|
2022-04-15 18:09:28 +00:00
|
|
|
},
|
|
|
|
set(newValue: boolean) {
|
2022-04-18 11:23:42 +00:00
|
|
|
botStore.setGlobalAutoRefresh(newValue);
|
2022-04-15 18:09:28 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return {
|
2022-04-18 11:23:42 +00:00
|
|
|
botStore,
|
2022-04-15 18:09:28 +00:00
|
|
|
autoRefreshLoc,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
2020-06-12 17:40:18 +00:00
|
|
|
</script>
|
|
|
|
|
2020-07-26 08:48:07 +00:00
|
|
|
<style scoped></style>
|