forked from platypush/platypush
entities
should be the default view when the web panel is opened
This commit is contained in:
parent
135965176d
commit
a9751f21f1
2 changed files with 2 additions and 10 deletions
|
@ -90,11 +90,6 @@ export default {
|
||||||
host: null,
|
host: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
|
||||||
if (this.isMobile() && !this.$root.$route.hash.length)
|
|
||||||
this.collapsed = false
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue