feat(FE): Dahsbaord, enabled Show instance form
This commit is contained in:
parent
18ea150bdf
commit
414f0cf9b4
1 changed files with 5 additions and 4 deletions
|
@ -4,13 +4,13 @@ import {computed, onMounted, type Ref, ref} from "vue";
|
|||
import {useAuthStore} from "@/stores/auth.store.ts";
|
||||
import ShowCreateEditForm from "@partials/show/ShowCreateEditForm.vue";
|
||||
import {baseShow, deleteShow} from "@models/show/show.ts";
|
||||
import type {Show} from "@models/show/show";
|
||||
import type {calendarShowEvent} from "@models/misc/calendarShowEvent.ts";
|
||||
import type { PropType} from "vue";
|
||||
import { nextTick } from "vue";
|
||||
|
||||
import {baseShowInstance, getShowInstances, type ShowInstance} from "@models/show/showInstance.ts";
|
||||
import {setShowInstancesForCalendar} from "@/composables/content/dashboard_page.ts";
|
||||
import {baseShowDays, getShowDays} from "@models/show/showDays.ts";
|
||||
import ShowInstanceForm from "@partials/show/ShowInstanceForm.vue";
|
||||
|
||||
const auth = useAuthStore();
|
||||
const userRole = auth.userData.user.role;
|
||||
|
@ -41,6 +41,7 @@ const toggleEditMode = () => {
|
|||
};
|
||||
|
||||
const contextMenuEditInstance = (showInstanceId: number) => {
|
||||
showInstanceCreateEditMode.value = false;
|
||||
selectedShowInstance.value = showInstances.value[showInstanceId];
|
||||
showInstanceCreateEditMode.value = true;
|
||||
};
|
||||
|
@ -75,8 +76,8 @@ const resetItemEdited = () => {
|
|||
|
||||
<template>
|
||||
<template v-if="showCreateEditMode || showInstanceCreateEditMode">
|
||||
<ShowCreateEditForm v-if="showCreateEditMode" :show="showSelected" @go-back="resetItemEdited" @save-show="saveShow"/>
|
||||
<!-- <ShowInstanceCreateEditForm v-if="showInstanceCreateEditMode" :showInstance="selectedShowInstance">-->
|
||||
<ShowCreateEditForm v-if="showCreateEditMode" :show="showSelected" @go-back="resetItemEdited" />
|
||||
<ShowInstanceForm v-if="showInstanceCreateEditMode" :showInstance="selectedShowInstance" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-row class="ma-4 justify-space-around">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue