Add information that deleting a workflow deletes also the workflow runs
[MAILPOET-4731]
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
} from '@wordpress/components';
|
} from '@wordpress/components';
|
||||||
import { useDispatch, useSelect } from '@wordpress/data';
|
import { useDispatch, useSelect } from '@wordpress/data';
|
||||||
|
import { __, sprintf } from '@wordpress/i18n';
|
||||||
import { storeName } from '../../store';
|
import { storeName } from '../../store';
|
||||||
|
|
||||||
export function TrashButton(): JSX.Element {
|
export function TrashButton(): JSX.Element {
|
||||||
@@ -30,7 +31,12 @@ export function TrashButton(): JSX.Element {
|
|||||||
onCancel={() => setShowConfirmDialog(false)}
|
onCancel={() => setShowConfirmDialog(false)}
|
||||||
__experimentalHideHeader={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>
|
</ConfirmDialog>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
Reference in New Issue
Block a user