Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/app.js
Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Line(s) | |||||
return this.price(cost, currency) + '/' + this.$t('wallet.month') + index | return this.price(cost, currency) + '/' + this.$t('wallet.month') + index | ||||
}, | }, | ||||
clickRecord(event) { | clickRecord(event) { | ||||
if (!/^(a|button|svg|path)$/i.test(event.target.nodeName)) { | if (!/^(a|button|svg|path)$/i.test(event.target.nodeName)) { | ||||
$(event.target).closest('tr').find('a').trigger('click') | $(event.target).closest('tr').find('a').trigger('click') | ||||
} | } | ||||
}, | }, | ||||
isDegraded() { | isDegraded() { | ||||
return store.state.authInfo.isAccountDegraded | return store.state.authInfo && store.state.authInfo.isAccountDegraded | ||||
}, | }, | ||||
pageName(path) { | pageName(path) { | ||||
let page = this.$route.path | let page = this.$route.path | ||||
// check if it is a "menu page", find the page name | // check if it is a "menu page", find the page name | ||||
// otherwise we'll use the real path as page name | // otherwise we'll use the real path as page name | ||||
window.config.menu.every(item => { | window.config.menu.every(item => { | ||||
if (item.location == page && item.page) { | if (item.location == page && item.page) { | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |