Merge pull request #3985 from leigh-pointer/ActionLink

_text being set and resetting other options
This commit is contained in:
Shaun Walker
2024-03-13 14:57:20 -07:00
committed by GitHub

View File

@ -100,7 +100,7 @@
_text = Action;
if (!string.IsNullOrEmpty(Text))
{
_text = Text;
_text = Localize(nameof(Text), _text);
}
if (IconOnly && !string.IsNullOrEmpty(IconName))
@ -150,7 +150,6 @@
}
_permissions = (PermissionList == null) ? ModuleState.PermissionList : PermissionList;
_text = Localize(nameof(Text), _text);
_url = EditUrl(_path, _moduleId, Action, _parameters);
if (!string.IsNullOrEmpty(ReturnUrl))