FreeDATA/gui/src/components/settings_exp.vue

36 lines
1 KiB
Vue
Raw Permalink Normal View History

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 16:12:05 +00:00
import { settingsStore as settings } 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">Enable MESH protocol</label>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline ms-2">
<input
class="form-check-input"
type="checkbox"
id="enableMeshSwitch"
2023-11-18 15:56:39 +00:00
@change="setConfig"
2023-12-03 23:54:44 +00:00
v-model="settings.remote.MESH.enable_protocol"
2023-10-03 13:15:17 +00:00
/>
<label class="form-check-label" for="enableMeshSwitch"
>experimental! REALLY!</label
2023-09-06 10:23:20 +00:00
>
</div>
2023-10-03 13:15:17 +00:00
</label>
</div>
<div class="center">
<div class="badge text-bg-danger">
<i class="bi bi-shield-exclamation"></i> These options may not work and
are for experienced users only!
2023-09-06 10:23:20 +00:00
</div>
2023-10-03 13:15:17 +00:00
</div>
2023-09-06 10:23:20 +00:00
</template>