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