File tree 1 file changed +7
-4
lines changed
resources/js/Pages/StyleGuide/Partials
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ const showAddForm = () => {
24
24
show_add_form .value = ! show_add_form .value ;
25
25
}
26
26
const showEditForm = (styleItem ) => {
27
+ console .log (' showEditForm' , styleItem);
28
+ show_edit_form .value = false ;
29
+ persona .value = {};
27
30
persona .value = styleItem;
28
31
show_edit_form .value = true ;
29
32
}
@@ -69,7 +72,7 @@ const addStyle = () => {
69
72
</template >
70
73
<template #intro >
71
74
<h2 >Existing Personas </h2 >
72
- <div >
75
+ <div v-auto-animate >
73
76
<div class =" text-sm text-secondary" v-if =" personas.length === 0" >
74
77
No Personas Yet! Start adding below.
75
78
</div >
@@ -78,9 +81,9 @@ const addStyle = () => {
78
81
Add Persona
79
82
</PrimaryButton >
80
83
</div >
81
- <div class =" mt-10 w-full border border-secondary rounded-lg p-10" >
84
+ <div class =" mt-10 w-full border border-secondary rounded-lg p-10" v-auto-animate >
82
85
<div
83
- v-if =" personas.length > 0"
86
+ v-if =" personas.length > 0 && show_edit_form === false "
84
87
class =" flex flex-wrap gap-4 mt-2 w-full justify-center items-center" >
85
88
<div v-for =" styleItem in personas" :key =" styleItem.id" >
86
89
<div class =" flex
@@ -104,7 +107,7 @@ const addStyle = () => {
104
107
<button
105
108
class =" btn btn-outline rounded-none"
106
109
@click =" hideEditForm()" >
107
- Cancel
110
+ Close
108
111
</button >
109
112
</PersonaItem >
110
113
</div >
You can’t perform that action at this time.
0 commit comments