Renamed page components (multi word)

This commit is contained in:
Ferdinand Thiessen 2021-11-22 12:00:17 +01:00
parent ea64568e2b
commit 13539a675b
5 changed files with 27 additions and 28 deletions

View File

@ -1,5 +1,5 @@
<template>
<div>
<q-page padding class="fit row justify-center content-start items-start q-gutter-sm">
<q-tabs v-if="$q.screen.gt.sm" v-model="tab">
<q-tab
v-for="(tabindex, index) in tabs"
@ -24,7 +24,6 @@
</q-item>
</q-list>
</q-drawer>
<q-page padding class="fit row justify-center content-start items-start q-gutter-sm">
<q-tab-panels
v-model="tab"
style="background-color: transparent"
@ -42,7 +41,6 @@
</q-tab-panel>
</q-tab-panels>
</q-page>
</div>
</template>
<script lang="ts">
@ -60,14 +58,16 @@ export default defineComponent({
date: {
type: String,
required: false,
default: undefined
}
default: undefined,
},
},
setup() {
const tabs = computed(() => [
{ name: 'create', label: 'Veranstaltungen' },
...(hasPermission(PERMISSIONS.JOB_TYPE) ? [{ name: 'jobtypes', label: 'Dienstarten' }] : []),
...(hasPermission(PERMISSIONS.EVENT_TYPE) ? [{ name: 'eventtypes', label: 'Veranstaltungsarten' }] : [])
...(hasPermission(PERMISSIONS.EVENT_TYPE)
? [{ name: 'eventtypes', label: 'Veranstaltungsarten' }]
: []),
]);
const drawer = ref<boolean>(false);
@ -82,7 +82,6 @@ export default defineComponent({
},
});
return {
showDrawer,
tab,

View File

@ -19,7 +19,7 @@ export const innerRoutes: FG_Plugin.MenuRoute[] = [
route: {
path: 'schedule-overview',
name: 'schedule-overview',
component: () => import('../pages/Overview.vue'),
component: () => import('../pages/EventOverview.vue'),
},
},
{
@ -30,7 +30,7 @@ export const innerRoutes: FG_Plugin.MenuRoute[] = [
route: {
path: 'schedule-management',
name: 'schedule-management',
component: () => import('../pages/Management.vue'),
component: () => import('../pages/EventManagement.vue'),
props: (route) => ({date: route.query.date}),
},
},
@ -41,7 +41,7 @@ export const innerRoutes: FG_Plugin.MenuRoute[] = [
route: {
path: 'schedule-requests',
name: 'schedule-requests',
component: () => import('../pages/Requests.vue'),
component: () => import('../pages/EventRequests.vue'),
},
},
],
@ -57,6 +57,6 @@ export const privateRoutes: FG_Plugin.NamedRouteRecordRaw[] = [
{
name: 'events-edit',
path: 'schedule/:id/edit',
component: () => import('../pages/Event.vue'),
component: () => import('../pages/EventPage.vue'),
},
];