mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 11:07:00 -04:00
small refactoring
This commit is contained in:
parent
53dedd40c8
commit
aa5bf0fb92
@ -39,8 +39,19 @@ const testerPasswordCookie = useCookie('tester-password', longtimeCookieSetting)
|
|||||||
const testerPassword = ref('');
|
const testerPassword = ref('');
|
||||||
|
|
||||||
const requiresLogin = computed((): boolean => {
|
const requiresLogin = computed((): boolean => {
|
||||||
return !config.macrolanguage?.enabled && (runtimeConfig.public.env === 'test' ||
|
if (config.macrolanguage?.enabled) {
|
||||||
config.locale !== '_' && !locales[config.locale]?.published);
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (runtimeConfig.public.env === 'test') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.locale !== '_' && !locales[config.locale]?.published) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
const testerPasswordValid = ref<boolean | undefined>();
|
const testerPasswordValid = ref<boolean | undefined>();
|
||||||
const checkTesterPassword = async () => {
|
const checkTesterPassword = async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user