added setWindowHash, reverted vis changes
This commit is contained in:
parent
2d5a7809ac
commit
ab37a837ce
4 changed files with 10 additions and 5 deletions
|
@ -274,6 +274,9 @@ const app = new Vue({
|
|||
}, false)
|
||||
},
|
||||
methods: {
|
||||
setWindowHash(route = "") {
|
||||
window.location.hash = `#${route}`;
|
||||
},
|
||||
async oobeInit() {
|
||||
this.appMode = "oobe"
|
||||
this.setLz(this.cfg.general.language)
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
data: function () {
|
||||
return {
|
||||
showInLibrary: false,
|
||||
isVisible: false,
|
||||
isVisible: true,
|
||||
addedToLibrary: false,
|
||||
guid: this.uuidv4(),
|
||||
app: this.$root,
|
||||
|
@ -509,7 +509,8 @@
|
|||
}
|
||||
},
|
||||
visibilityChanged: function (isVisible, entry) {
|
||||
this.isVisible = isVisible
|
||||
return
|
||||
// this.isVisible = isVisible
|
||||
},
|
||||
async getHeartStatus() {
|
||||
try {
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
},
|
||||
data: function () {
|
||||
return {
|
||||
isVisible: false,
|
||||
isVisible: true,
|
||||
addedToLibrary: false,
|
||||
guid: this.uuidv4(),
|
||||
noplay: ["apple-curators", "editorial-elements", "editorial-items"],
|
||||
|
@ -284,7 +284,8 @@
|
|||
}
|
||||
},
|
||||
visibilityChanged: function (isVisible, entry) {
|
||||
this.isVisible = isVisible
|
||||
//this.isVisible = isVisible
|
||||
return
|
||||
},
|
||||
async contextMenu(event) {
|
||||
if (this.nomenu.includes(this.item.type)) {
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<!-- Sidebar Item -->
|
||||
<script type="text/x-template" id="sidebar-library-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>
|
||||
{{ name }}
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue