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
commit 0021f7b4ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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))