✏️ cleanup

This commit is contained in:
SebClem 2023-01-13 16:30:22 +01:00
parent 1324c0b3d1
commit a10868da54
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-tooltip>
</v-col> </v-col>
</v-row> </v-row>
<v-row> <v-row dense>
<v-col class="d-flex justify-center"> <v-col class="d-flex justify-center">
<v-tooltip text="Last edit" location="top"> <v-tooltip text="Last edit" location="top">
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">

View File

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