Frontend: Show fullscreen toggle in experimental mode only

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-10 10:28:18 +02:00
parent 0d5c7bd608
commit 0f7b598806
2 changed files with 4 additions and 2 deletions

View file

@ -41,7 +41,7 @@
</v-btn>
<v-btn icon @click.stop="toggleFullScreen()"
class="hidden-xs-only">
class="hidden-xs-only" v-if="experimental">
<v-icon v-if="isFullScreen">fullscreen_exit</v-icon>
<v-icon v-else>fullscreen</v-icon>
</v-btn>
@ -147,6 +147,7 @@
const configValues = this.$config.values;
return {
experimental: this.$config.get("experimental"),
isFullScreen: !!document.fullscreenElement,
categories: configValues.albumCategories ? configValues.albumCategories : [],
searchExpanded: false,

View file

@ -32,7 +32,7 @@
</v-btn>
<v-btn icon @click.stop="toggleFullScreen()"
class="hidden-xs-only">
class="hidden-xs-only" v-if="experimental">
<v-icon v-if="isFullScreen">fullscreen_exit</v-icon>
<v-icon v-else>fullscreen</v-icon>
</v-btn>
@ -171,6 +171,7 @@
},
data() {
return {
experimental: this.$config.get("experimental"),
isFullScreen: !!document.fullscreenElement,
config: this.$config.values,
searchExpanded: false,