Skip to content

Commit 4f51768

Browse files
committed
Add clarity when revoking a license from bundle.
1 parent 000b595 commit 4f51768

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

client/a8c-for-agencies/components/a4a-feedback/churn-mechanism/cancel-license-feedback-modal.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const CancelLicenseFeedbackModal = ( {
3535
siteUrl,
3636
isAtomicSite,
3737
isClientLicense,
38+
isChildLicense,
3839
}: {
3940
onClose: () => void;
4041
productName: string;
@@ -44,6 +45,7 @@ const CancelLicenseFeedbackModal = ( {
4445
siteUrl?: string | null;
4546
isAtomicSite?: boolean;
4647
isClientLicense?: boolean;
48+
isChildLicense?: boolean;
4749
} ) => {
4850
const translate = useTranslate();
4951
const dispatch = useDispatch();
@@ -206,9 +208,22 @@ const CancelLicenseFeedbackModal = ( {
206208
return (
207209
<A4AModal
208210
title={ translate( 'Are you sure you want to revoke this license?' ) }
209-
subtile={ translate(
210-
'A revoked license cannot be reused, and the associated site will no longer have access to the provisioned product. You will stop being billed for this license immediately.'
211-
) }
211+
subtile={
212+
<>
213+
{ translate(
214+
'A revoked license cannot be reused, and the associated site will no longer have access to the provisioned product. You will stop being billed for this license immediately.'
215+
) }
216+
{ isChildLicense && (
217+
<>
218+
<br />
219+
<br />
220+
{ translate(
221+
"When you revoke this license, we will add an unassigned replacement license to the bundle which can be assigned to a new site when you're ready."
222+
) }
223+
</>
224+
) }
225+
</>
226+
}
212227
onClose={ onClose }
213228
showCloseButton={ false }
214229
extraActions={

client/a8c-for-agencies/sections/purchases/licenses/license-details/actions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ export default function LicenseDetailsActions( {
186186
siteUrl={ siteUrl }
187187
onClose={ closeRevokeDialog }
188188
isClientLicense={ isClientLicense }
189+
isChildLicense={ isChildLicense }
189190
/>
190191
) }
191192
</div>

client/a8c-for-agencies/sections/purchases/licenses/license-preview/license-actions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default function LicenseActions( {
8787
siteUrl={ siteUrl }
8888
productId={ productId }
8989
isClientLicense={ isClientLicense }
90+
isChildLicense={ isChildLicense }
9091
/>
9192
) }
9293
</>

0 commit comments

Comments
 (0)