feat(ui): new project type

This commit is contained in:
fiftin 2024-03-11 02:00:50 +01:00
parent 48bf414202
commit 31e8caf314

View File

@ -79,6 +79,7 @@
>
<template v-slot:form="{ onSave, onError, needSave, needReset }">
<ProjectForm
v-if="newProjectType === ''"
item-id="new"
@save="onSave"
@error="onError"
@ -164,7 +165,10 @@
<v-list-item-content>{{ item.name }}</v-list-item-content>
</v-list-item>
<v-list-item @click="newProjectDialog = true" v-if="user.can_create_project">
<v-list-item
@click="newProjectDialog = true; newProjectType = '';"
v-if="user.can_create_project"
>
<v-list-item-icon>
<v-icon>mdi-plus</v-icon>
</v-list-item-icon>
@ -700,6 +704,7 @@ export default {
snackbarColor: '',
projects: null,
newProjectDialog: null,
newProjectType: '',
userDialog: null,
passwordDialog: null,