Review fixes

This commit is contained in:
Nithin David Thomas
2024-02-13 08:55:56 +05:30
parent 0d9a94e7f5
commit 74f046be75
7 changed files with 35 additions and 57 deletions
@@ -1,6 +1,6 @@
<template>
<banner
v-if="shouldShowBanner"
v-if="false"
color-scheme="alert"
:banner-message="bannerMessage"
:action-button-label="actionButtonMessage"
@@ -34,6 +34,9 @@ export default {
actionButtonMessage() {
return this.$t('GENERAL_SETTINGS.OPEN_BILLING');
},
isOnboardingView() {
return this.$route.name.includes('onboarding_');
},
shouldShowBanner() {
if (!this.isOnChatwootCloud) {
return false;
@@ -43,6 +46,9 @@ export default {
return false;
}
if (this.isOnboardingView) {
return false;
}
return this.isPaymentPending();
},
},
@@ -29,7 +29,13 @@ export default {
actionButtonMessage() {
return this.$t('APP_GLOBAL.RESEND_VERIFICATION_MAIL');
},
isOnboardingView() {
return this.$route.name.includes('onboarding_');
},
shouldShowBanner() {
if (this.isOnboardingView) {
return false;
}
return !this.currentUser.confirmed;
},
},