2023-09-06 10:23:20 +00:00
|
|
|
<script setup lang="ts">
|
2023-11-18 15:56:39 +00:00
|
|
|
import { setConfig } from "../js/api";
|
2023-11-09 18:46:29 +00:00
|
|
|
|
2023-10-03 13:15:17 +00:00
|
|
|
import { setActivePinia } from "pinia";
|
|
|
|
import pinia from "../store/index";
|
2023-09-06 10:23:20 +00:00
|
|
|
setActivePinia(pinia);
|
|
|
|
|
2023-11-18 15:59:19 +00:00
|
|
|
import { settingsStore as settings, onChange } from "../store/settingsStore.js";
|
2023-09-06 10:23:20 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-03 13:15:17 +00:00
|
|
|
<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">
|
|
|
|
<input
|
|
|
|
class="form-check-input"
|
|
|
|
type="checkbox"
|
|
|
|
id="ExplorerSwitch"
|
2023-11-18 15:59:19 +00:00
|
|
|
@change="onChange"
|
|
|
|
v-model="settings.remote.STATION.enable_explorer"
|
2023-10-03 13:15:17 +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-11-18 15:59:19 +00:00
|
|
|
@change="onChange"
|
|
|
|
v-model="settings.remote.STATION.enable_stats"
|
2023-10-03 13:15:17 +00:00
|
|
|
/>
|
|
|
|
<label class="form-check-label" for="ExplorerStatsSwitch"
|
|
|
|
>Publish stats</label
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-09-06 10:23:20 +00:00
|
|
|
</template>
|