added setWindowHash, reverted vis changes

This commit is contained in:
booploops 2022-06-10 06:15:24 -07:00
parent 2d5a7809ac
commit ab37a837ce
4 changed files with 10 additions and 5 deletions

View file

@ -274,6 +274,9 @@ const app = new Vue({
}, false) }, false)
}, },
methods: { methods: {
setWindowHash(route = "") {
window.location.hash = `#${route}`;
},
async oobeInit() { async oobeInit() {
this.appMode = "oobe" this.appMode = "oobe"
this.setLz(this.cfg.general.language) this.setLz(this.cfg.general.language)

View file

@ -97,7 +97,7 @@
data: function () { data: function () {
return { return {
showInLibrary: false, showInLibrary: false,
isVisible: false, isVisible: true,
addedToLibrary: false, addedToLibrary: false,
guid: this.uuidv4(), guid: this.uuidv4(),
app: this.$root, app: this.$root,
@ -509,7 +509,8 @@
} }
}, },
visibilityChanged: function (isVisible, entry) { visibilityChanged: function (isVisible, entry) {
this.isVisible = isVisible return
// this.isVisible = isVisible
}, },
async getHeartStatus() { async getHeartStatus() {
try { try {

View file

@ -91,7 +91,7 @@
}, },
data: function () { data: function () {
return { return {
isVisible: false, isVisible: true,
addedToLibrary: false, addedToLibrary: false,
guid: this.uuidv4(), guid: this.uuidv4(),
noplay: ["apple-curators", "editorial-elements", "editorial-items"], noplay: ["apple-curators", "editorial-elements", "editorial-items"],
@ -284,7 +284,8 @@
} }
}, },
visibilityChanged: function (isVisible, entry) { visibilityChanged: function (isVisible, entry) {
this.isVisible = isVisible //this.isVisible = isVisible
return
}, },
async contextMenu(event) { async contextMenu(event) {
if (this.nomenu.includes(this.item.type)) { if (this.nomenu.includes(this.item.type)) {

View file

@ -115,7 +115,7 @@
<!-- Sidebar Item --> <!-- Sidebar Item -->
<script type="text/x-template" id="sidebar-library-item"> <script type="text/x-template" id="sidebar-library-item">
<button class="app-sidebar-item" <button class="app-sidebar-item"
:class="$parent.getSidebarItemClass(page)" @click="$root.appRoute(page)"> :class="$parent.getSidebarItemClass(page)" @click="$root.setWindowHash(page)">
<div class="sidebar-icon" v-html="svgIconData" v-if="svgIconData != ''"></div> <div class="sidebar-icon" v-html="svgIconData" v-if="svgIconData != ''"></div>
{{ name }} {{ name }}
</button> </button>