Commit 9a189dc0 authored by Julien BOUYER's avatar Julien BOUYER
Browse files

UNOTOPLYS-164 feat(screen) : ajout d'un écran

parent 334b62ca
This diff is collapsed.
......@@ -22,7 +22,7 @@ export default class OaButton extends Vue {
@Prop()
public iconName: string;
public click(event): void {
public click(event: Event): void {
this.$emit('click', event);
}
}
import { Authority } from '@/shared/security/authority';
const ScreenCreateComponent = () => import('@/views/screen/screen-create.vue');
const ScreenEditComponent = () => import('@/views/screen/screen-edit.vue');
export default [
{
path: '/admin/form/:idForm/screen/create',
name: 'ScreenCreateComponent',
component: ScreenCreateComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/screen/:idScreen?/edit',
name: 'ScreenEditComponent',
component: ScreenEditComponent,
meta: {
authorities: [Authority.ADMIN],
panel: 'panel/panel-screen/panel-screen',
},
},
];
import { Authority } from '@/shared/security/authority';
import adminJhi from '@/router/admin-jhi'; // TODO à supprimer après dev back
import adminForm from '@/router/admin-form';
import adminScreen from '@/router/admin-screen';
import adminUser from '@/router/admin-user';
import adminVariable from '@/router/admin-variable';
import adminWorkspace from '@/router/admin-workspace';
......@@ -24,6 +25,7 @@ export default [
meta: { authorities: [Authority.ADMIN] },
},
...adminForm,
...adminScreen,
...adminUser,
...adminVariable,
...adminWorkspace,
......
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class ScreenCreate extends Vue {}
<template>
<main>Création d'un screen</main>
</template>
<script lang="ts" src="./screen-create.component.ts" />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment