File tree 2 files changed +11
-11
lines changed
static/gsApp/views/legalAndCompliance
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,18 @@ const formGroups: JsonFormObject[] = [
29
29
) ,
30
30
}
31
31
) ,
32
- disabled : ( { hasMsaUpdated, hasBillingAccess, isSuperuser} ) =>
33
- ( ! hasMsaUpdated || ! hasBillingAccess ) && ! isSuperuser ,
34
- disabledReason : ( { hasMsaUpdated, hasBillingAccess} ) =>
35
- hasMsaUpdated
36
- ? hasBillingAccess
32
+ disabled : ( { isTouchCustomerAndNeedsMsaUpdate, hasBillingAccess, isSuperuser} ) =>
33
+ ( isTouchCustomerAndNeedsMsaUpdate || ! hasBillingAccess ) && ! isSuperuser ,
34
+ disabledReason : ( { isTouchCustomerAndNeedsMsaUpdate, hasBillingAccess} ) =>
35
+ isTouchCustomerAndNeedsMsaUpdate
36
+ ? t (
37
+ 'These changes require updates to your account. Please contact your customer success manager to learn more.'
38
+ )
39
+ : hasBillingAccess
37
40
? null
38
41
: t (
39
42
"You don't have access to manage these billing and subscription details."
40
- )
41
- : t (
42
- 'These changes require updates to your account. Please contact your customer success manager to learn more.'
43
- ) ,
43
+ ) ,
44
44
} ,
45
45
{
46
46
name : 'genAIConsent' ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function DataConsentForm({subscription}: {subscription: Subscription}) {
22
22
isUsRegion,
23
23
hasBillingAccess,
24
24
isSuperuser,
25
- hasMsaUpdated ,
25
+ isTouchCustomerAndNeedsMsaUpdate ,
26
26
} = useGenAiConsentButtonAccess ( {
27
27
subscription,
28
28
} ) ;
@@ -67,7 +67,7 @@ function DataConsentForm({subscription}: {subscription: Subscription}) {
67
67
isUsRegion,
68
68
hasBillingAccess,
69
69
isSuperuser,
70
- hasMsaUpdated ,
70
+ isTouchCustomerAndNeedsMsaUpdate ,
71
71
} }
72
72
forms = { DataConsentFields }
73
73
/>
You can’t perform that action at this time.
0 commit comments