none billing app fixes

This commit is contained in:
Čarodej
2022-02-12 09:16:36 +01:00
parent 948c7453a6
commit 4498461e70
5 changed files with 10 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ import store from '../store/index'
const ValidatorHelpers = {
install(Vue) {
Vue.prototype.$cantInviteMember = function (email, invitations) {
if (store.getters.config.subscriptionType === 'metered') {
if (['metered', 'none'].includes(store.getters.config.subscriptionType)) {
return false
}
@@ -28,9 +28,7 @@ const ValidatorHelpers = {
Vue.prototype.$reCaptchaToken = async function (action) {
await this.$recaptchaLoaded()
let token = await this.$recaptcha(action)
return token
return await this.$recaptcha(action)
}
},
}