@@ -18,17 +18,19 @@ | |||||
</a> | </a> | ||||
</div> | </div> | ||||
<div class="links"> | <div class="links"> | ||||
<a | |||||
class="text-white link" | |||||
v-for="item in footerLinks" | |||||
:key="item" | |||||
:href="messages[`link_${item}`]" | |||||
:target=" | |||||
messages[`link_${item}`].startsWith('http') ? '_blank' : '_self' | |||||
" | |||||
> | |||||
{{ messages[`title_${item}`] }} | |||||
</a> | |||||
<div class="link" v-for="item in footerLinks" :key="item"> | |||||
<a | |||||
class="text-white" | |||||
v-if="messages[`link_${item}`].startsWith('http')" | |||||
:href="messages[`link_${item}`]" | |||||
target="_blank" | |||||
> | |||||
{{ messages[`title_${item}`] }} | |||||
</a> | |||||
<router-link v-else :to="messages[`link_${item}`]" class="text-white"> | |||||
{{ messages[`title_${item}`] }} | |||||
</router-link> | |||||
</div> | |||||
</div> | </div> | ||||
</footer> | </footer> | ||||
</template> | </template> | ||||
@@ -72,7 +72,8 @@ export default { | |||||
if (this.messages) { | if (this.messages) { | ||||
const account_actions = this.configs.bubbleNode === true ? 'manage_account_node_actions' : 'manage_account_sage_actions'; | const account_actions = this.configs.bubbleNode === true ? 'manage_account_node_actions' : 'manage_account_sage_actions'; | ||||
if (this.messages[account_actions]) { | if (this.messages[account_actions]) { | ||||
const actions = this.messages[account_actions].split(','); | |||||
const vue = this; | |||||
const actions = this.messages[account_actions].split(',').filter(a => vue.configs.paymentsEnabled || (a !== 'billing' && a !== 'payment')); | |||||
if (this.currentUser.admin && this.currentUser.firstAdmin) { | if (this.currentUser.admin && this.currentUser.firstAdmin) { | ||||
const delete_index = actions.indexOf('delete'); | const delete_index = actions.indexOf('delete'); | ||||
if (delete_index !== -1) actions.splice(delete_index, 1); | if (delete_index !== -1) actions.splice(delete_index, 1); | ||||
@@ -1,9 +1,9 @@ | |||||
<!-- Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/ --> | <!-- Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/ --> | ||||
<template> | <template> | ||||
<div> | <div> | ||||
<h1 class="title text-center white-text">{{ messages.title_support }}</h1> | |||||
<h1 class="title text-center">{{ messages.title_support }}</h1> | |||||
<hr /> | <hr /> | ||||
<h5 class="text-center white-text"> | |||||
<h5 class="text-center"> | |||||
{{ messages.support_preamble }} | {{ messages.support_preamble }} | ||||
</h5> | </h5> | ||||
<hr /> | <hr /> | ||||
@@ -210,11 +210,8 @@ const actions = { | |||||
(error) => commit('checkForUpgradeFailure', error) | (error) => commit('checkForUpgradeFailure', error) | ||||
); | ); | ||||
} else { | } else { | ||||
console.log( | |||||
'checkForUpgrade: already checked (' + | |||||
state.upgradeCheck + | |||||
'), not checking again' | |||||
); | |||||
commit('checkForUpgradeFailure', null) | |||||
console.log('checkForUpgrade: already checked (' + state.upgradeCheck + '), not checking again'); | |||||
} | } | ||||
}, | }, | ||||
upgrade({ commit }) { | upgrade({ commit }) { | ||||
@@ -535,6 +532,7 @@ const mutations = { | |||||
}, | }, | ||||
checkForUpgradeFailure(state, error) { | checkForUpgradeFailure(state, error) { | ||||
state.error = error; | state.error = error; | ||||
state.upgradeCheck = null; | |||||
}, | }, | ||||
upgradeRequest(state) {}, | upgradeRequest(state) {}, | ||||