entities should be the default view when the web panel is opened

This commit is contained in:
Fabio Manganiello 2022-04-24 01:40:34 +02:00
parent 135965176d
commit a9751f21f1
Signed by: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 2 additions and 10 deletions

View file

@ -90,11 +90,6 @@ export default {
host: null,
}
},
mounted() {
if (this.isMobile() && !this.$root.$route.hash.length)
this.collapsed = false
},
}
</script>

View file

@ -45,10 +45,7 @@ export default {
methods: {
initSelectedPanel() {
const match = this.$route.hash.match('#?([a-zA-Z0-9.]+)[?]?(.*)')
if (!match)
return
const plugin = match[1]
const plugin = match ? match[1] : 'entities'
if (plugin?.length)
this.selectedPanel = plugin
},
@ -113,7 +110,7 @@ main {
height: 100%;
display: flex;
@media screen and (max-width: $tablet) {
@include until($tablet) {
flex-direction: column;
}