fix: hide consent warning when consent has been provided
This commit is contained in:
@@ -229,7 +229,7 @@ import {
|
||||
toast,
|
||||
call,
|
||||
} from 'frappe-ui'
|
||||
import { reactive, inject, onMounted, computed, ref } from 'vue'
|
||||
import { reactive, inject, onMounted, computed, ref, watch } from 'vue'
|
||||
import { sessionStore } from '../stores/session'
|
||||
import Link from '@/components/Controls/Link.vue'
|
||||
import NotPermitted from '@/components/NotPermitted.vue'
|
||||
@@ -446,6 +446,12 @@ const redirectTo = computed(() => {
|
||||
}
|
||||
})
|
||||
|
||||
watch(billingDetails, () => {
|
||||
if (billingDetails.member_consent) {
|
||||
showConsentWarning.value = false
|
||||
}
|
||||
})
|
||||
|
||||
usePageMeta(() => {
|
||||
return {
|
||||
title: __('Billing Details'),
|
||||
|
||||
Reference in New Issue
Block a user