diff --git a/Oqtane.Client/Modules/Admin/Profiles/Edit.razor b/Oqtane.Client/Modules/Admin/Profiles/Edit.razor index 9a27c2a9..4eab45b9 100644 --- a/Oqtane.Client/Modules/Admin/Profiles/Edit.razor +++ b/Oqtane.Client/Modules/Admin/Profiles/Edit.razor @@ -2,97 +2,98 @@ @inherits ModuleBase @inject NavigationManager NavigationManager @inject IProfileService ProfileService +@inject IStringLocalizer Localizer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- -Cancel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ +@Localizer["Cancel"] @code { private int _profileid = -1; @@ -169,7 +170,8 @@ if (_profileid != -1) { profile = await ProfileService.UpdateProfileAsync(profile); - }else + } + else { profile = await ProfileService.AddProfileAsync(profile); } diff --git a/Oqtane.Client/Modules/Admin/Profiles/Index.razor b/Oqtane.Client/Modules/Admin/Profiles/Index.razor index 80c7f5a2..e7985f51 100644 --- a/Oqtane.Client/Modules/Admin/Profiles/Index.razor +++ b/Oqtane.Client/Modules/Admin/Profiles/Index.razor @@ -1,10 +1,11 @@ @namespace Oqtane.Modules.Admin.Profiles @inherits ModuleBase @inject IProfileService ProfileService +@inject IStringLocalizer Localizer @if (_profiles == null) { -

Loading...

+

@Localizer["Loading..."]

} else { @@ -14,7 +15,7 @@ else
    - Name + @Localizer["Name"]