[header] show all language versions for now

This commit is contained in:
Avris 2020-12-22 10:05:10 +01:00
parent 3b02a68e15
commit ececb1c1eb
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,7 @@
<T>title</T> <T>title</T>
</nuxt-link> </nuxt-link>
</h1> </h1>
<!--
<Dropdown v-if="Object.keys(locales).length > 1" btnClass="btn-outline-secondary btn-sm"> <Dropdown v-if="Object.keys(locales).length > 1" btnClass="btn-outline-secondary btn-sm">
<template v-slot:toggle> <template v-slot:toggle>
<Icon v="language"/> <Icon v="language"/>
@ -21,6 +22,16 @@
</li> </li>
</template> </template>
</Dropdown> </Dropdown>
-->
<div class="btn-group">
<a v-for="(options, locale) in locales" :key="locale"
:href="options.url"
:class="'btn btn-sm ' + (locale === config.locale ? 'btn-secondary disabled' : 'btn-outline-secondary')"
:disabled="locale === config.locale"
>
{{options.name}}
</a>
</div>
</div> </div>
<div class="d-block d-md-none"> <div class="d-block d-md-none">
<div class="btn-group-vertical btn-block nav-custom mb-2"> <div class="btn-group-vertical btn-block nav-custom mb-2">