feat(FE): Show forms improved store

This commit is contained in:
Michael 2025-03-31 19:20:53 +02:00
parent 71c7be938c
commit 50a8497bf4

View file

@ -1,15 +1,11 @@
<script setup lang="ts">
import {ref, type PropType, onMounted} from "vue";
import {type Show} from "@models/show/show.ts";
import {showForm} from "@/composables/content/show/show_form.ts";
import ShowScheduleForm from "@partials/show/ShowScheduleForm.vue";
import {useShowFormStore} from "@/stores/showForm.store.ts";
import {useShowStore} from "@/stores/show.store.ts";
import {getUser} from "@models/User.ts";
import {getPlaylist} from "@models/playlist.ts";
import ColorPickerButton from "@partials/fields/misc/ColorPickerButton.vue";
import {showRepetitionData} from "@models/show/ShowRepetition.ts";
import DaysCheckbox from "@partials/fields/show/DaysCheckbox.vue";
import {baseShowDays} from "@models/show/showDays.ts";
const props = defineProps({
show: {
@ -22,7 +18,8 @@ let usersDJs = ref([])
let playlists = ref([])
const isLoading = ref(false);
const showScheduleFormMode = ref(false);
const showFormStore = useShowFormStore()
const showFormStore = useShowStore()
onMounted(async () => {
isLoading.value = true
await showFormStore.loadShow(props.show)