diff --git a/src/_pages/main/Layout.vue b/src/_pages/main/Layout.vue index f084449..bbffa05 100644 --- a/src/_pages/main/Layout.vue +++ b/src/_pages/main/Layout.vue @@ -37,6 +37,7 @@ export default { computed: { ...mapState('users', ['policy']), ...mapState('paymentMethods', ['accountPaymentMethods']), + ...mapSTate('system', ['configs']), }, mounted() { @@ -127,7 +128,7 @@ export default { }, accountPaymentMethods(pms, oldpms) { - if (pms) { + if (pms && this.configs.paymentsEnabled) { const payMethods = []; for (let i = 0; i < pms.length; i++) { const pm = pms[i]; diff --git a/src/_pages/main/account/Support.vue b/src/_pages/main/account/Support.vue new file mode 100644 index 0000000..1064ec1 --- /dev/null +++ b/src/_pages/main/account/Support.vue @@ -0,0 +1,100 @@ + + + + + + diff --git a/src/_router/index.js b/src/_router/index.js index 3ce5459..2f94ee1 100644 --- a/src/_router/index.js +++ b/src/_router/index.js @@ -5,8 +5,6 @@ import Vue from 'vue'; import Router from 'vue-router'; -import LegalPage from '~/app/LegalPage'; -import SupportPage from '~/app/SupportPage'; import ActivationPage from '~/auth/ActivationPage'; import ModelSetupPage from '~/admin/ModelSetupPage'; // import RegisterPage from '~/auth/RegisterPage'; @@ -14,8 +12,6 @@ import ModelSetupPage from '~/admin/ModelSetupPage'; import LogoutPage from '~/auth/LogoutPage'; // import ForgotPasswordPage from '~/auth/ForgotPasswordPage'; import MultifactorAuthPage from '~/auth/MultifactorAuthPage'; -import AppLoginPage from '~/auth/AppLoginPage'; -import RestorePage from '~/auth/RestorePage'; import DashboardPage from '~/account/DashboardPage'; import ProfilePage from '~/account/profile/ProfilePage'; import ActionPage from '~/account/profile/ActionPage'; @@ -102,8 +98,8 @@ export const router = new Router({ component: () => import('~/_pages/main/account/Legal'), }, { - path: 'restore', - component: () => import('~/_pages/main/bubble/Restore'), + path: 'support', + component: () => import('~/_pages/main/account/Support'), }, ], }, @@ -119,8 +115,8 @@ export const router = new Router({ // existing pages { path: '', component: DashboardPage }, { path: '/', component: DashboardPage }, - { path: '/legal', component: LegalPage }, - { path: '/support', component: SupportPage }, + // { path: '/legal', component: LegalPage }, + // { path: '/support', component: SupportPage }, // { path: '/me', component: ProfilePage }, // { path: '/me/policy', component: PolicyPage }, @@ -180,8 +176,8 @@ export const router = new Router({ // { path: '/login', component: LoginPage }, { path: '/logout', component: LogoutPage }, // { path: '/forgotPassword', component: ForgotPasswordPage }, - { path: '/appLogin', component: AppLoginPage }, - { path: '/restore', component: RestorePage }, + // { path: '/appLogin', component: AppLoginPage }, + // { path: '/restore', component: RestorePage }, { path: '/admin/accounts', component: AccountsPage }, { path: '/admin/new_account', component: ProfilePage }, @@ -275,6 +271,23 @@ export const router = new Router({ path: 'devices', component: () => import('~/_pages/main/account/Devices'), }, + + { + path: 'bubble/:id', + component: () => import('~/_pages/main/bubble/Network'), + }, + { + path: 'restore', + component: () => import('~/_pages/main/bubble/Restore'), + }, + { + path: 'legal', + component: () => import('~/_pages/main/account/Legal'), + }, + { + path: 'support', + component: () => import('~/_pages/main/account/Support'), + }, ], }, { diff --git a/src/app/App.vue b/src/app/App.vue index 6c37889..38fd098 100644 --- a/src/app/App.vue +++ b/src/app/App.vue @@ -182,7 +182,22 @@ export default { return this.configs ? this.configs.awaitingRestore : undefined; }, isNewPage() { - const newPages = ['/new_pages', '/login', '/forgotPassword', '/register', '/me', '/devices', '/launch-bubble', '/launching-bubble', '/payment', '/verify-email']; + const newPages = [ + '/new_pages', + '/login', + '/forgotPassword', + '/register', + '/me', + '/devices', + '/launch-bubble', + '/launching-bubble', + '/payment', + '/verify-email', + '/restore', + '/support', + 'legal', + '/appLogin', + ]; return ( newPages.includes(this.$route.path) || newPages.filter((p) => this.$route.path.startsWith(p)).length