feat: defer everything until the api config is loaded #926

Merged
konrad merged 27 commits from feature/ready-state into main 2021-11-13 19:49:03 +00:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 15a6e52815 - Show all commits

View File

@ -2,10 +2,10 @@
<ready>
<div :class="{'is-touch': isTouch}">
<div :class="{'is-hidden': !online}">
<!-- This is a workaround to get the sw to "see" the to-be-cached version of the offline background image -->
<div class="offline" style="height: 0;width: 0;"></div>
<top-navigation v-if="authUser"/>
<content-auth v-if="authUser"/>
<template v-if="authUser">
<top-navigation/>
<content-auth/>
konrad marked this conversation as resolved Outdated

Wrap in <template v-if="authUser">

Wrap in `<template v-if="authUser">`

Why?

Why?

to make clear that it mounts at the same time than the content-auth below.

to make clear that it mounts at the same time than the content-auth below.

Ah, that makes sense. Done.

Ah, that makes sense. Done.
</template>
<content-link-share v-else-if="authLinkShare"/>
<content-no-auth v-else/>
<notification/>

View File

@ -1,4 +1,6 @@
<template>
<!-- This is a workaround to get the sw to "see" the to-be-cached version of the offline background image -->
<div class="offline" style="height: 0;width: 0;"></div>
<div class="app offline" v-if="!online">
<div class="offline-message">
<h1>{{ $t('offline.title') }}</h1>