File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
2
3
3
import LanguageSelector from ' ../LanguageSelector.vue' ;
4
+ import OdsButton from ' ../OdsButton.vue' ;
5
+
4
6
5
7
import { useI18n } from ' vue-i18n'
6
8
@@ -38,28 +40,31 @@ const emit = defineEmits<{
38
40
<div class =" top-bar__btn" />
39
41
<div class =" top-bar__right" >
40
42
<div v-if =" props.enableAuthentication" >
41
- <v-btn
43
+ <OdsButton
42
44
v-if =" props.authenticated"
43
- variant =" plain"
44
- append-icon =" mdi:mdi-logout"
45
+ icon =" Logout"
46
+ variant =" bare"
47
+ size =" sm"
45
48
:title =" t('message.top_header.logout')"
46
- :aria-label =" t('message.top_header..logout')"
49
+ :aria-label =" t('message.top_header.logout')"
50
+ icon-right
47
51
@click =" loginOrLogout"
48
52
>
49
- {{ props.username ? props.username : t('message.top_header.logout')}}
53
+ <span >{{ props.username ? props.username : t('message.top_header.logout')}}</span >
54
+ </OdsButton >
50
55
51
- </v-btn >
52
- <v-btn
56
+ <OdsButton
53
57
v-if =" !props.authenticated"
54
- variant =" plain"
55
- append-icon =" mdi:mdi-login"
58
+ icon =" Login"
59
+ variant =" bare"
60
+ size =" sm"
56
61
:title =" t('message.top_header.login')"
57
62
:aria-label =" t('message.top_header.login')"
63
+ icon-right
58
64
@click =" loginOrLogout"
59
65
>
60
- {{ t('message.top_header.login') }}
61
-
62
- </v-btn >
66
+ <span >{{ t('message.top_header.login') }}</span >
67
+ </OdsButton >
63
68
</div >
64
69
65
70
<div class =" language-selector" >
You can’t perform that action at this time.
0 commit comments