diff --git a/Oqtane.Client/Modules/Admin/Profiles/Edit.razor b/Oqtane.Client/Modules/Admin/Profiles/Edit.razor index 44843e8e..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 36df1731..e7985f51 100644 --- a/Oqtane.Client/Modules/Admin/Profiles/Index.razor +++ b/Oqtane.Client/Modules/Admin/Profiles/Index.razor @@ -1,24 +1,25 @@ -@namespace Oqtane.Modules.Admin.Profiles +@namespace Oqtane.Modules.Admin.Profiles @inherits ModuleBase @inject IProfileService ProfileService +@inject IStringLocalizer Localizer @if (_profiles == null) { -

Loading...

+

@Localizer["Loading..."]

} else { - +
    - Name + @Localizer["Name"]
- - + + @context.Name