diff --git a/src/components/misc/ToS.vue b/src/components/misc/ToS.vue index f92e40cea..015ec255a 100644 --- a/src/components/misc/ToS.vue +++ b/src/components/misc/ToS.vue @@ -2,7 +2,9 @@

By using this application you agree to the - Terms of Use. + + Terms of Use. +

@@ -13,8 +15,8 @@ import { Vue, Component, Prop } from 'vue-property-decorator' }) export default class ToS extends Vue { helpers = this.globalHelper() - click(to: string) { - this.helpers.navigate(to) + redirect(to: string) { + window.open(to, '_blank') } } diff --git a/src/components/misc/ToSContent.vue b/src/components/misc/ToSContent.vue deleted file mode 100644 index c9804d3c6..000000000 --- a/src/components/misc/ToSContent.vue +++ /dev/null @@ -1,710 +0,0 @@ - - - diff --git a/src/router/index.ts b/src/router/index.ts index 376fc34da..44e306da1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,5 +1,4 @@ import Create from '@/views/Create.vue' -import Legal from '@/views/Legal.vue' import Wallet from '@/views/Wallet.vue' import Activity from '@/views/wallet/Activity.vue' import Advanced from '@/views/wallet/Advanced.vue' @@ -34,11 +33,6 @@ const ifAuthenticated = (to: Route, from: Route, next: Function) => { } const routes = [ - { - path: '/wallet/legal', - name: 'legal', - component: Legal, - }, { path: '/wallet/create', name: 'create', diff --git a/src/views/Legal.vue b/src/views/Legal.vue deleted file mode 100644 index 1c08d2254..000000000 --- a/src/views/Legal.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/src/views/mountLegal.ts b/src/views/mountLegal.ts deleted file mode 100644 index ef1fcc211..000000000 --- a/src/views/mountLegal.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Vue from 'vue' -import Legal from './Legal.vue' -import 'vue-datetime/dist/vue-datetime.css' - -export const mountLegal = (el: string) => { - const app = new Vue({ - render: (createElement) => { - return createElement(Legal) - }, - }) - app.$mount(el) -} diff --git a/webpack.common.js b/webpack.common.js index c18169ce7..08cc52355 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -83,7 +83,6 @@ module.exports = { './mountCreateOfferForm': './src/components/wallet/earn/mountCreateOfferForm.ts', './caminoClient': './src/AVA.ts', './mountVerifyWalletSetting': './src/views/mountVerifyWalletSetting.ts', - './mountLegal': './src/views/mountLegal.ts', }, }), new HtmlWebPackPlugin({