mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 11:15:14 +00:00
making sure app is not mounted before mounted()
This commit is contained in:
parent
cf25a0f75d
commit
f4e7ed4924
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<v-app style="background: black !important">
|
<v-app v-show="stateLoaded" style="background: black !important">
|
||||||
<v-card
|
<v-card
|
||||||
style="height: 4rem !important; display: flex; box-shadow: none !important"
|
style="height: 4rem !important; display: flex; box-shadow: none !important"
|
||||||
color="accent white--text"
|
color="accent white--text"
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
borderRadius: `${roundTweak / 2}rem`,
|
borderRadius: `${roundTweak / 2}rem`,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<!-- element above removes artifacting from things like v-ripple via overflow:hidden -->
|
<!-- element above removes artifacting from things like v-ripple by -->
|
||||||
<!-- scrollbox below must be a standalone div -->
|
<!-- scrollbox below must be a standalone div -->
|
||||||
<div class="scroll-y" style="height: 100%">
|
<div class="scroll-y" style="height: 100%">
|
||||||
<nuxt v-show="!search" />
|
<nuxt v-show="!search" />
|
||||||
|
@ -148,12 +148,14 @@ export default {
|
||||||
|
|
||||||
text: null,
|
text: null,
|
||||||
response: [],
|
response: [],
|
||||||
|
stateLoaded: false
|
||||||
}),
|
}),
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
// initializes UI tweaks to the saved state
|
// initializes UI tweaks to the saved state
|
||||||
this.$store.commit("tweaks/initTweaks");
|
this.$store.commit("tweaks/initTweaks");
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.stateLoaded = true
|
||||||
//--- Back Button Listener ---//
|
//--- Back Button Listener ---//
|
||||||
CapacitorApp.addListener("backButton", ({ canGoBack }) => {
|
CapacitorApp.addListener("backButton", ({ canGoBack }) => {
|
||||||
//--- Back Closes Search ---//
|
//--- Back Closes Search ---//
|
||||||
|
|
Loading…
Reference in a new issue