Button: Add default name attribute for cancel button

This commit is contained in:
Molkobain
2021-02-18 14:57:06 +01:00
parent 6634f3981e
commit 146089e021

View File

@@ -279,6 +279,8 @@ class ButtonUIBlockFactory extends AbstractUIBlockFactory
?string $sId = null
): Button {
$sLabel = $sLabel ?? Dict::S('UI:Button:Cancel');
$sName = $sName ?? 'cancel';
return static::MakeForAction($sLabel, Button::ENUM_COLOR_NEUTRAL, Button::ENUM_ACTION_TYPE_ALTERNATIVE, $sValue, $sName,
$bIsSubmit, $sId);
}