From a9751f21f1f7190cc3778901c4433df8bc70c6ca Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 24 Apr 2022 01:40:34 +0200 Subject: [PATCH] `entities` should be the default view when the web panel is opened --- platypush/backend/http/webapp/src/components/Nav.vue | 5 ----- platypush/backend/http/webapp/src/views/Panel.vue | 7 ++----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/Nav.vue b/platypush/backend/http/webapp/src/components/Nav.vue index 3a551ed2a..92531e2f7 100644 --- a/platypush/backend/http/webapp/src/components/Nav.vue +++ b/platypush/backend/http/webapp/src/components/Nav.vue @@ -90,11 +90,6 @@ export default { host: null, } }, - - mounted() { - if (this.isMobile() && !this.$root.$route.hash.length) - this.collapsed = false - }, } diff --git a/platypush/backend/http/webapp/src/views/Panel.vue b/platypush/backend/http/webapp/src/views/Panel.vue index 78a6cdbe5..56a72e7ff 100644 --- a/platypush/backend/http/webapp/src/views/Panel.vue +++ b/platypush/backend/http/webapp/src/views/Panel.vue @@ -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; }