Merge pull request #828 from hishamco/action-link-localization

Action link localization
This commit is contained in:
Shaun Walker 2020-10-20 07:52:40 -04:00 committed by GitHub
commit 544475c489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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