[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>
</nuxt-link>
</h1>
<!--
<Dropdown v-if="Object.keys(locales).length > 1" btnClass="btn-outline-secondary btn-sm">
<template v-slot:toggle>
<Icon v="language"/>
@ -21,6 +22,16 @@
</li>
</template>
</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 class="d-block d-md-none">
<div class="btn-group-vertical btn-block nav-custom mb-2">