Commit 8f69889f authored by Jochen Roth's avatar Jochen Roth Committed by Oliver Bartsch
Browse files

[BUGFIX] Trigger modal dismiss on cancel

Currently when a language in site configuration
is removed the modal cancel button does not
remove/cancel the modal.

This has been fixed by adding a trigger to close
the modal when the cancel button was clicked.

Resolves: #96016
Releases: master, 11.5
Change-Id: I100d84a7fa5f6a84d1045fec0a63d7c20789b42d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72219

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 0dbf1378
......@@ -226,12 +226,15 @@ class SiteLanguageContainer extends HTMLElement {
active: true,
btnClass: 'btn-default',
name: 'no',
trigger: (): void => {
Modal.currentModal.trigger('modal-dismiss');
}
},
{
text: TYPO3.lang['buttons.confirm.delete_record.yes'] || 'Yes, delete this record',
btnClass: 'btn-warning',
name: 'yes',
trigger: () => {
trigger: (): void => {
me.deleteRecord((<HTMLDivElement>this.closest('[data-object-id]')).dataset.objectId);
Modal.currentModal.trigger('modal-dismiss');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment