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, host: null,
} }
}, },
mounted() {
if (this.isMobile() && !this.$root.$route.hash.length)
this.collapsed = false
},
} }
</script> </script>

View file

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