Skip to content

Commit 42890f4

Browse files
Merge pull request #36 from opendata-swiss/remove-vuetify-from-top-header
remove vuetifiy from top header
2 parents 71f0c45 + b0bd83e commit 42890f4

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

opendata.swiss/ui/app/components/headers/OdsTopHeader.vue

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<script lang="ts" setup>
22
33
import LanguageSelector from '../LanguageSelector.vue';
4+
import OdsButton from '../OdsButton.vue';
5+
46
57
import { useI18n } from 'vue-i18n'
68
@@ -38,28 +40,31 @@ const emit = defineEmits<{
3840
<div class="top-bar__btn"/>
3941
<div class="top-bar__right">
4042
<div v-if="props.enableAuthentication">
41-
<v-btn
43+
<OdsButton
4244
v-if="props.authenticated"
43-
variant="plain"
44-
append-icon="mdi:mdi-logout"
45+
icon="Logout"
46+
variant="bare"
47+
size="sm"
4548
: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
4751
@click="loginOrLogout"
4852
>
49-
{{ props.username ? props.username : t('message.top_header.logout')}}
53+
<span>{{ props.username ? props.username : t('message.top_header.logout')}}</span>
54+
</OdsButton>
5055

51-
</v-btn>
52-
<v-btn
56+
<OdsButton
5357
v-if="!props.authenticated"
54-
variant="plain"
55-
append-icon="mdi:mdi-login"
58+
icon="Login"
59+
variant="bare"
60+
size="sm"
5661
:title="t('message.top_header.login')"
5762
:aria-label="t('message.top_header.login')"
63+
icon-right
5864
@click="loginOrLogout"
5965
>
60-
{{ t('message.top_header.login') }}
61-
62-
</v-btn>
66+
<span>{{ t('message.top_header.login') }}</span>
67+
</OdsButton>
6368
</div>
6469

6570
<div class="language-selector">

0 commit comments

Comments
 (0)