ff-admin/src/components/admin/management/setting/BackupSetting.vue

35 lines
1 KiB
Vue
Raw Normal View History

2025-04-28 12:39:32 +02:00
<template>
<div class="flex flex-col w-full">
<div class="border-l-3 border-l-primary p-2 rounded-t-lg bg-red-200">
<p class="text-lg font-semibold">Backup Einstellungen</p>
</div>
<div class="border-l-3 border-l-primary p-2 rounded-b-lg">
2025-04-28 14:36:47 +02:00
<div class="w-full">
<label for="name">Anzahl paralleler Backups</label>
<input id="name" type="text" readonly :value="backupSettings['backup.copies']" />
</div>
<div class="w-full">
<label for="name">Intervall zur Backup-Erstellung</label>
<input id="name" type="text" readonly :value="backupSettings['backup.interval']" />
</div>
2025-04-28 12:39:32 +02:00
</div>
</div>
</template>
<script setup lang="ts">
2025-04-28 14:36:47 +02:00
import { useSettingStore } from "@/stores/admin/management/setting";
import { mapState } from "pinia";
2025-04-28 12:39:32 +02:00
import { defineComponent } from "vue";
</script>
<script lang="ts">
2025-04-28 14:36:47 +02:00
export default defineComponent({
computed: {
...mapState(useSettingStore, ["readByTopic"]),
backupSettings() {
return this.readByTopic("backup");
},
},
});
2025-04-28 12:39:32 +02:00
</script>