Skip to content
Snippets Groups Projects
Commit 1013cfce authored by Justin Toupin's avatar Justin Toupin
Browse files

Issue #3257666: Misleading dialog title for "Delete" action

parent 1cbacf1c
No related branches found
No related tags found
1 merge request!103Issue #3295875: Add a new dedicated permission for Layout paragraphs configurations
......@@ -247,6 +247,7 @@ function layout_paragraphs_preprocess_layout_paragraphs_builder_controls(&$varia
'modal' => TRUE,
'target' => Dialog::dialogId($layout),
'dialogClass' => 'lpb-dialog',
'width' => 'auto',
]),
'title' => t('Delete'),
],
......
......@@ -65,9 +65,9 @@ class DeleteComponentForm extends FormBase {
$this->componentUuid = $component_uuid;
$component = $this->layoutParagraphsLayout->getComponentByUuid($this->componentUuid);
$type = $component->getEntity()->getParagraphType()->label();
$form['#title'] = $this->t('Delete @type', ['@type' => $type]);
$form['#title'] = $this->t('Delete component', ['@type' => $type]);
$form['confirm'] = [
'#markup' => $this->t('Really delete this @type? There is no undo.', ['@type' => $type]),
'#markup' => $this->t('Really delete this "@type" component? There is no undo.', ['@type' => $type]),
];
$form['actions'] = [
'#type' => 'actions',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment