File tree Expand file tree Collapse file tree 2 files changed +41
-18
lines changed Expand file tree Collapse file tree 2 files changed +41
-18
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,21 @@ const toggleMobileUserMenu = (event) => {
57
57
<div class =" flex flex-col" >
58
58
<Button
59
59
id =" mobile-user-menu-btn"
60
- :label =" page.props.auth.user.name"
61
60
severity =" secondary"
62
61
size =" large"
63
- pt:root:class =" flex flex-row-reverse justify-between"
62
+ pt:root:class =" flex justify-between"
64
63
@click =" toggleMobileUserMenu($event)"
65
64
>
66
- <template #icon >
65
+ <div class =" flex items-center gap-3" >
66
+ <Tag
67
+ v-if =" page.props.auth.isAdmin"
68
+ value =" ADMIN"
69
+ />
70
+ {{ page.props.auth.user.name }}
71
+ </div >
72
+ <div >
67
73
<ChevronsUpDown />
68
- </template >
74
+ </div >
69
75
</Button >
70
76
<Menu
71
77
ref =" mobile-user-menu"
@@ -100,15 +106,21 @@ const toggleMobileUserMenu = (event) => {
100
106
<div class =" flex flex-col" >
101
107
<Button
102
108
id =" user-menu-btn"
103
- :label =" page.props.auth.user.name"
104
- pt:root:class =" flex flex-row-reverse justify-between"
105
109
severity =" secondary"
110
+ pt:root:class =" flex justify-between"
106
111
text
107
112
@click =" toggleUserMenu($event)"
108
113
>
109
- <template #icon >
114
+ <div class =" flex items-center gap-3" >
115
+ <Tag
116
+ v-if =" page.props.auth.isAdmin"
117
+ value =" ADMIN"
118
+ />
119
+ {{ page.props.auth.user.name }}
120
+ </div >
121
+ <div >
110
122
<ChevronDown />
111
- </template >
123
+ </div >
112
124
</Button >
113
125
<div
114
126
id =" user-menu-append"
Original file line number Diff line number Diff line change @@ -55,15 +55,21 @@ const toggleMobileUserMenu = (event) => {
55
55
<div class =" flex flex-col" >
56
56
<Button
57
57
id =" mobile-user-menu-btn"
58
- :label =" page.props.auth.user.name"
59
- pt:root:class =" flex flex-row-reverse justify-between"
60
58
severity =" secondary"
61
59
size =" large"
60
+ pt:root:class =" flex justify-between"
62
61
@click =" toggleMobileUserMenu($event)"
63
62
>
64
- <template #icon >
63
+ <div class =" flex items-center gap-3" >
64
+ <Tag
65
+ v-if =" page.props.auth.isAdmin"
66
+ value =" ADMIN"
67
+ />
68
+ {{ page.props.auth.user.name }}
69
+ </div >
70
+ <div >
65
71
<ChevronsUpDown />
66
- </template >
72
+ </div >
67
73
</Button >
68
74
<Menu
69
75
ref =" mobile-user-menu"
@@ -120,18 +126,23 @@ const toggleMobileUserMenu = (event) => {
120
126
/>
121
127
</div >
122
128
</div >
123
- <div >
129
+ <div class = " flex " >
124
130
<Button
125
131
id =" user-menu-btn"
126
- :label =" page.props.auth.user.name"
127
- pt:root:class =" flex flex-row-reverse justify-between"
128
132
severity =" secondary"
129
- fluid
133
+ pt:root:class = " flex grow justify-between "
130
134
@click =" toggleUserMenu($event)"
131
135
>
132
- <template #icon >
136
+ <div class =" flex items-center gap-3" >
137
+ <Tag
138
+ v-if =" page.props.auth.isAdmin"
139
+ value =" ADMIN"
140
+ />
141
+ {{ page.props.auth.user.name }}
142
+ </div >
143
+ <div >
133
144
<ChevronsUpDown />
134
- </template >
145
+ </div >
135
146
</Button >
136
147
<Menu
137
148
ref =" user-menu"
You can’t perform that action at this time.
0 commit comments