Localize ActionLink

This commit is contained in:
hishamco
2020-10-19 12:16:35 +03:00
parent fed56098a0
commit 34b9903b15

View File

@ -1,5 +1,5 @@
@namespace Oqtane.Modules.Controls @namespace Oqtane.Modules.Controls
@inherits ModuleControlBase @inherits LocalizableComponent
@inject IUserService UserService @inject IUserService UserService
@if (_authorized) @if (_authorized)
@ -56,6 +56,8 @@
protected override void OnParametersSet() protected override void OnParametersSet()
{ {
base.OnParametersSet();
_text = Action; _text = Action;
if (!string.IsNullOrEmpty(Text)) if (!string.IsNullOrEmpty(Text))
{ {
@ -93,6 +95,7 @@
} }
_text = Localize(nameof(Text));
_url = EditUrl(Action, _parameters); _url = EditUrl(Action, _parameters);
_authorized = IsAuthorized(); _authorized = IsAuthorized();
} }