Skip to content

Commit

Permalink
Merge pull request #828 from hishamco/action-link-localization
Browse files Browse the repository at this point in the history
Action link localization
  • Loading branch information
sbwalker committed Oct 20, 2020
2 parents e61cd3d + 34b9903 commit 544475c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Oqtane.Client/Modules/Controls/ActionLink.razor
@@ -1,5 +1,5 @@
@namespace Oqtane.Modules.Controls
@inherits ModuleControlBase
@namespace Oqtane.Modules.Controls
@inherits LocalizableComponent
@inject IUserService UserService

@if (_authorized)
Expand Down Expand Up @@ -56,6 +56,8 @@
protected override void OnParametersSet()
{
base.OnParametersSet();

_text = Action;
if (!string.IsNullOrEmpty(Text))
{
Expand Down Expand Up @@ -93,6 +95,7 @@

}

_text = Localize(nameof(Text));
_url = EditUrl(Action, _parameters);
_authorized = IsAuthorized();
}
Expand Down

0 comments on commit 544475c

Please sign in to comment.