@@ -30,7 +30,7 @@ const BudgetActions = ({
30
30
const { enterpriseSlug, enterpriseAppPage } = useParams ( ) ;
31
31
const { subsidyAccessPolicyId } = useBudgetId ( ) ;
32
32
const { data : subsidyAccessPolicy } = useSubsidyAccessPolicy ( subsidyAccessPolicyId ) ;
33
- const { data : appliesToAllContexts } = useEnterpriseGroup ( subsidyAccessPolicy ) ;
33
+ const { data : enterpriseGroup } = useEnterpriseGroup ( subsidyAccessPolicy ) ;
34
34
const { data : enterpriseCustomer } = useEnterpriseCustomer ( enterpriseId ) ;
35
35
const { openInviteModal } = useContext ( BudgetDetailPageContext ) ;
36
36
const supportUrl = configuration . ENTERPRISE_SUPPORT_URL ;
@@ -95,15 +95,15 @@ const BudgetActions = ({
95
95
96
96
if ( ! isAssignable ) {
97
97
if ( enterpriseGroupsV1 ) {
98
- if ( isLmsBudget ( enterpriseCustomer ?. activeIntegrations . length , appliesToAllContexts ) ) {
98
+ if ( isLmsBudget ( enterpriseCustomer ?. activeIntegrations . length , enterpriseGroup ?. appliesToAllContexts ) ) {
99
99
return (
100
100
< div className = "h-100 d-flex align-items-center pt-4 pt-lg-0" >
101
101
< div >
102
102
< h3 >
103
103
< FormattedMessage
104
104
id = "lcm.budget.detail.page.overview.budget.actions.manage.edx.in.integrated.learning.platform"
105
105
defaultMessage = "Manage edX in your integrated learning platform"
106
- description = "Titlte which tells to customer to manage edX in their integrated learning platform"
106
+ description = "Title which tells to customer to manage edX in their integrated learning platform"
107
107
/>
108
108
</ h3 >
109
109
< p >
@@ -114,7 +114,7 @@ const BudgetActions = ({
114
114
values = { { apostrophe : "'" } }
115
115
/>
116
116
</ p >
117
- < Link to = { `/${ enterpriseSlug } /admin/settings/lms ` } >
117
+ < Link to = { `/${ enterpriseSlug } /admin/settings/access ` } >
118
118
< Button variant = "outline-primary" >
119
119
< FormattedMessage
120
120
id = "lcm.budget.detail.page.overview.budget.actions.configure.access"
@@ -126,36 +126,41 @@ const BudgetActions = ({
126
126
</ div >
127
127
</ div >
128
128
) ;
129
- } if ( appliesToAllContexts === true ) {
130
- < div className = "h-100 d-flex align-items-center pt-4 pt-lg-0" >
131
- < div >
132
- < h3 >
133
- < FormattedMessage
134
- id = "lcm.budget.detail.page.overview.budget.actions.manage.edx.for.organization"
135
- defaultMessage = "Manage edX for your organization"
136
- description = "Title for the budget actions section on the budget detail page overview"
137
- />
138
- </ h3 >
139
- < p >
140
- < FormattedMessage
141
- id = "lcm.budget.detail.page.overview.budget.actions.all.people.choose.learn"
142
- defaultMessage = "All people in your organization can choose what to learn
143
- from the catalog and spend from the available balance to enroll."
144
- description = "Decription which tells that user can choose from the catalog and spend from the available balance to enroll"
145
- />
146
- </ p >
147
- < Link to = { `/${ enterpriseSlug } /admin/settings/access` } >
148
- < Button variant = "outline-primary" >
129
+ }
130
+
131
+ if ( enterpriseGroup ?. appliesToAllContexts === true ) {
132
+ return (
133
+ < div className = "h-100 d-flex align-items-center pt-4 pt-lg-0" >
134
+ < div >
135
+ < h3 >
149
136
< FormattedMessage
150
- id = "lcm.budget.detail.page.overview.budget.actions.configure.access.general "
151
- defaultMessage = "Configure access "
152
- description = "Configure access button on the budget detail page overview"
137
+ id = "lcm.budget.detail.page.overview.budget.actions.manage.edx.for.organization "
138
+ defaultMessage = "Manage edX for your organization "
139
+ description = "Title for the budget actions section on the budget detail page overview"
153
140
/>
154
- </ Button >
155
- </ Link > ,
141
+ </ h3 >
142
+ < p >
143
+ < FormattedMessage
144
+ id = "lcm.budget.detail.page.overview.budget.actions.all.people.choose.learn"
145
+ defaultMessage = "All people in your organization can choose what to learn
146
+ from the catalog and spend from the available balance to enroll."
147
+ description = "Description which tells that user can choose from the catalog and spend from the available balance to enroll"
148
+ />
149
+ </ p >
150
+ < Link to = { `/${ enterpriseSlug } /admin/settings/access` } >
151
+ < Button variant = "outline-primary" >
152
+ < FormattedMessage
153
+ id = "lcm.budget.detail.page.overview.budget.actions.configure.access.general"
154
+ defaultMessage = "Configure access"
155
+ description = "Configure access button on the budget detail page overview"
156
+ />
157
+ </ Button >
158
+ </ Link >
159
+ </ div >
156
160
</ div >
157
- </ div > ;
161
+ ) ;
158
162
}
163
+
159
164
return (
160
165
< div className = "h-100 d-flex align-items-center pt-4 pt-lg-0" >
161
166
< div >
0 commit comments