- added not found page

- Fixed admin menu in regular license
- allow_homepage default setting in regular license
- frontend build
This commit is contained in:
Peter Papp
2021-03-21 11:16:36 +01:00
parent db57bde4fc
commit a90311593b
6 changed files with 30 additions and 12 deletions

View File

@@ -625,6 +625,17 @@ const routesIndex = [
},
},
]
const routesOthers = [
{
name: 'NotFound',
path: '*',
component: () =>
import(/* webpackChunkName: "chunks/not-found-shared" */ './views/Shared/NotFoundShared'),
meta: {
requiresAuth: false
},
},
]
const router = new Router({
mode: 'history',
@@ -635,6 +646,7 @@ const router = new Router({
...routesIndex,
...routesAuth,
...routesUser,
...routesOthers,
],
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {

View File

@@ -13,9 +13,8 @@
<b class="mobile-menu-label">{{ $t('global.admin') }}</b>
<MenuItemList :navigation="AdminNavigation" />
<!--SaaS menu-->
<b class="mobile-menu-label">{{ $t('global.saas') }}</b>
<MenuItemList :navigation="SassNavigation" />
<b v-if="config.isSaaS" class="mobile-menu-label">{{ $t('global.saas') }}</b>
<MenuItemList v-if="config.isSaaS" :navigation="SassNavigation" />
</nav>
</div>
</div>
@@ -33,6 +32,9 @@
MenuItemList,
MobileHeader,
},
computed: {
...mapGetters(['config']),
},
data() {
return {
AdminNavigation: [
@@ -54,6 +56,12 @@
routeName: 'AppOthers',
isVisible: true,
},
{
icon: 'monitor',
title: this.$t('admin_menu.pages'),
routeName: 'Pages',
isVisible: true,
},
],
SassNavigation: [
{
@@ -68,12 +76,6 @@
routeName: 'Invoices',
isVisible: true,
},
{
icon: 'monitor',
title: this.$t('admin_menu.pages'),
routeName: 'Pages',
isVisible: true,
},
]
}
},