✏️ cleanup

This commit is contained in:
SebClem 2023-01-13 16:30:22 +01:00
parent eb2ce74c17
commit 154cd724af
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 8 additions and 9 deletions

View File

@ -59,7 +59,7 @@
</v-tooltip>
</v-col>
</v-row>
<v-row>
<v-row dense>
<v-col class="d-flex justify-center">
<v-tooltip text="Last edit" location="top">
<template v-slot:activator="{ props }">

View File

@ -1,15 +1,15 @@
<template>
<v-form class="mx-4">
<v-form class="mx-4" @submit.prevent>
<v-row>
<v-col>
<div class="text-subtitle-1 text-medium-emphasis">Naming template</div>
<!-- <v-text-field
<v-text-field
placeholder="{type}-{ha_version}-{date}_{hour}"
variant="outlined"
density="compact"
prepend-inner-icon="mdi-tag"
hide-details="auto"
v-model="data.config.nameTemplate"
v-model="data.nameTemplate"
:error-messages="errors.nameTemplate"
:loading="loading"
color="orange"
@ -26,7 +26,7 @@
<v-icon icon="mdi-help-circle-outline"></v-icon>
</v-btn>
</template>
</v-text-field> -->
</v-text-field>
</v-col>
</v-row>
<v-row>
@ -53,19 +53,18 @@
</v-form>
</template>
<script setup lang="ts">
import { ref, watch } from "vue";
import { ref } from "vue";
import { useConfigForm } from "@/composable/ConfigForm";
import { saveBackupConfig } from "@/services/configService";
import { useBackupConfigStore } from "@/stores/backupConfig";
import { CronMode } from "@/types/backupConfig";
import { storeToRefs } from "pinia";
import BackupConfigAddon from "./BackupConfig/BackupConfigAddon.vue";
import BackupConfigFolder from "./BackupConfig/BackupConfigFolder.vue";
import BackupConfigAutoBackup from "./BackupConfig/BackupConfigAutoBackup.vue";
import BackupConfigFolder from "./BackupConfig/BackupConfigFolder.vue";
const backupConfigStore = useBackupConfigStore();
const { data, folders, invertedFolders } = storeToRefs(backupConfigStore);
const { data } = storeToRefs(backupConfigStore);
const errors = ref({
nameTemplate: [],
username: [],