Genre Admin page, new Genre store

This commit is contained in:
2024-10-26 16:23:00 +02:00
parent 76a98b8a16
commit 57819f5a2f
11 changed files with 218 additions and 32 deletions

View File

@@ -0,0 +1,38 @@
<script setup lang="ts">
import actionDialog from '@/components/basics/actionDialog.vue';
import outlinedButton from '@/components/basics/outlinedButton.vue';
import { useGenreStore } from '@/stores/genre.store';
const genreStore = useGenreStore()
</script>
<template>
<action-dialog
v-model="genreStore.showEditDialog"
:title="$t('band.editGenre')"
icon="mdi-pencil"
>
<v-container>
<v-row>
<v-col>
<v-text-field
:label="$t('band.genre')"
v-model="genreStore.genre.name"
variant="outlined"
hide-details
/>
</v-col>
</v-row>
</v-container>
<template #actions>
<outlined-button
color="green"
@click="genreStore.saveGenre"
:loading="genreStore.fetchInProgress"
>
{{ $t('misc.actions.save') }}
</outlined-button>
</template>
</action-dialog>
</template>