2023-09-06 10:23:20 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
|
|
|
|
|
|
import { setActivePinia } from 'pinia';
|
|
|
|
import pinia from '../store/index';
|
|
|
|
setActivePinia(pinia);
|
|
|
|
|
|
|
|
import { useSettingsStore } from '../store/settingsStore.js';
|
|
|
|
const settings = useSettingsStore(pinia);
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<div class="input-group input-group-sm mb-1">
|
|
|
|
<label class="input-group-text w-50">Explorer publishing</label>
|
|
|
|
<label class="input-group-text w-50">
|
|
|
|
<div class="form-check form-switch form-check-inline">
|
2023-09-06 12:48:45 +00:00
|
|
|
<input class="form-check-input" type="checkbox" id="ExplorerSwitch" @change="saveSettings" v-model="settings.enable_explorer" true-value="True" false-value="False"/>
|
2023-09-06 10:23:20 +00:00
|
|
|
<label class="form-check-label" for="ExplorerSwitch">Publish</label>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="input-group input-group-sm mb-1">
|
|
|
|
<label class="input-group-text w-50">Explorer stats publishing</label>
|
|
|
|
<label class="input-group-text w-50">
|
|
|
|
<div class="form-check form-switch form-check-inline">
|
|
|
|
<input
|
|
|
|
class="form-check-input"
|
|
|
|
type="checkbox"
|
|
|
|
id="ExplorerStatsSwitch"
|
2023-09-06 12:48:45 +00:00
|
|
|
@change="saveSettings" v-model="settings.enable_stats" true-value="True" false-value="False"
|
2023-09-06 10:23:20 +00:00
|
|
|
/>
|
|
|
|
<label class="form-check-label" for="ExplorerStatsSwitch"
|
|
|
|
>Publish stats</label
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</template>
|