mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 12:43:48 -04:00
show "under construction" warnings for unpublished locales
This commit is contained in:
parent
a5b111c2fa
commit
b40d06cc9a
@ -60,6 +60,10 @@
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="locales[config.locale].published === false" class="alert alert-warning">
|
||||
<Icon v="exclamation-triangle"/>
|
||||
This language version is still under construction!
|
||||
</div>
|
||||
</header>
|
||||
<header v-else class="mb-4">
|
||||
<h1 class="text-nowrap">
|
||||
|
@ -144,7 +144,7 @@ export const buildLocaleList = (current) => {
|
||||
return buildDict(function* () {
|
||||
for (let [code, name, url, published] of locales) {
|
||||
if (published || current === code) {
|
||||
yield [code, {name, url}];
|
||||
yield [code, {name, url, published}];
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user