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
1 changed files with 5 additions and 13 deletions
Showing only changes of commit 699d5bdc88 - Show all commits

View File

@ -15,21 +15,13 @@
</div>
</template>
<script>
<script setup>
konrad marked this conversation as resolved Outdated

Use script setup

Use script setup

Makes a lot of sense. Done!

Makes a lot of sense. Done!
import logoUrl from '@/assets/logo-full.svg'
import {mapState} from 'vuex'
import {useStore} from 'vuex'
import {computed} from 'vue'
export default {
name: 'no-auth-wrapper',
data() {
return {
logoUrl,
}
},
computed: mapState({
motd: state => state.config.motd,
}),
}
const store = useStore()
const motd = computed(() => store.state.config.motd)
</script>
<style lang="scss" scoped>