Skip to content

Commit c40ac90

Browse files
committed
Fixing system tests
1 parent 15c618a commit c40ac90

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

β€Žfrontend/src/components/RosalutionHeader.vueβ€Ž

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
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: {

0 commit comments

Comments
Β (0)