File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 2424 </a >
2525 <slot ></slot >
2626 <ul class =" actions-menu" >
27- <router-link :to =" {path: '/rosalution/account'}" class =" auth-menu" >
28- <span v-if =" username" class =" login" data-test =" user-text" >
29- {{ username }}
30- </span >
31- <font-awesome-icon class =" header-icon" icon =" user-doctor" size =" xl" />
32- </router-link >
27+ <drop-down-menu :actions =" this.userAuthActions" data-test =" auth-menu" >
28+ <router-link :to =" {path: '/rosalution/account'}" class =" auth-menu" >
29+ <span v-if =" username" class =" login" data-test =" user-text" >
30+ {{ username }}
31+ </span >
32+ <font-awesome-icon class =" header-icon" icon =" user-doctor" size =" xl" />
33+ </router-link >
34+ </drop-down-menu >
3335 <drop-down-menu v-if =" actionsExist" :actions =" actions" data-test =" user-menu" >
3436 <font-awesome-icon class =" header-icon" icon =" bars" size =" xl" />
3537 </drop-down-menu >
@@ -49,6 +51,13 @@ export default {
4951 },
5052 data : function () {
5153 return {
54+ userAuthActions: [{
55+ icon: ' ' ,
56+ text: ' Logout' ,
57+ operation : () => {
58+ this .$emit (' logout' );
59+ },
60+ }],
5261 };
5362 },
5463 props: {
You canβt perform that action at this time.
0 commit comments