Add information that deleting a workflow deletes also the workflow runs

[MAILPOET-4731]
This commit is contained in:
David Remer
2022-10-24 15:54:58 +03:00
committed by Jan Jakeš
parent 1b70e6d494
commit 75d79f19cc

View File

@@ -4,6 +4,7 @@ import {
Button,
} from '@wordpress/components';
import { useDispatch, useSelect } from '@wordpress/data';
import { __, sprintf } from '@wordpress/i18n';
import { storeName } from '../../store';
export function TrashButton(): JSX.Element {
@@ -30,7 +31,12 @@ export function TrashButton(): JSX.Element {
onCancel={() => setShowConfirmDialog(false)}
__experimentalHideHeader={false}
>
You are about to delete the {workflow.name} workflow.
{sprintf(
__('You are about to delete the “%s” workflow.', 'mailpoet'),
workflow.name,
)}
<br />
{__(' This will stop it for all subscribers immediately.', 'mailpoet')}
</ConfirmDialog>
<Button