fix: vue/no-boolean-default NoAuthWrapper

I'm still unsure if we should keep this rule in general, in this specific case I think it makes sense to reverse the logic and enable this api config explicitly
This commit is contained in:
Dominik Pschenitschni 2025-01-20 12:09:06 +01:00 committed by konrad
parent 4858f7c82f
commit 460d6ac8a4
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<ContentAuth />
</template>
<ContentLinkShare v-else-if="authStore.authLinkShare" />
<NoAuthWrapper v-else>
<NoAuthWrapper v-else show-api-config>
<RouterView />
</NoAuthWrapper>

View File

@ -56,7 +56,7 @@ import {useConfigStore} from '@/stores/config'
withDefaults(defineProps<{
showApiConfig?: boolean
}>(), {
showApiConfig: true,
showApiConfig: false,
})
const configStore = useConfigStore()
const motd = computed(() => configStore.motd)

View File

@ -19,7 +19,7 @@
<slot />
</template>
<section v-else-if="baseStore.error !== ''">
<NoAuthWrapper :show-api-config="false">
<NoAuthWrapper>
<p v-if="baseStore.error === ERROR_NO_API_URL">
{{ $t('ready.noApiUrlConfigured') }}
</p>