diff --git a/pages/projecttypes/[mode]/[[id]].vue b/pages/projecttypes/[mode]/[[id]].vue
index a81c98d..8c30dae 100644
--- a/pages/projecttypes/[mode]/[[id]].vue
+++ b/pages/projecttypes/[mode]/[[id]].vue
@@ -32,13 +32,23 @@ const toast = useToast()
const mode = ref(route.params.mode || "show")
const itemInfo = ref({
name: "",
- initialPhases: []
+ initialPhases: [{label:'',icon:''}]
})
const oldItemInfo = ref({})
const openQuickActionModal = ref(false)
const selectedKeyForQuickAction = ref("")
+const setKeys = () => {
+ itemInfo.value.initialPhases = itemInfo.value.initialPhases.map(i => {
+ return {
+ ...i,
+ key: uuidv4(),
+ quickactions: i.quickactions || []
+ }
+ })
+}
+
const setupPage = async() => {
if(mode.value === "show" ){
@@ -59,14 +69,11 @@ const setupPage = async() => {
setupPage()
-const setKeys = () => {
- itemInfo.value.initialPhases = itemInfo.value.initialPhases.map(i => {
- return {
- ...i,
- key: uuidv4(),
- quickactions: i.quickactions || []
- }
- })
+
+
+const addPhase = () => {
+ itemInfo.value.initialPhases.push({label: '', icon: ''}),
+ setKeys
}
@@ -97,7 +104,7 @@ const setKeys = () => {
@@ -203,12 +210,14 @@ const setKeys = () => {
- Name
- Icon
- Optional
- Beschreibung
- Schnellaktionen
+ Name
+ Icon
+ Optional
+ Beschreibung
+ Schnellaktionen