Browse Source

improve messages of account.blazor

pull/5416/head
Ahmet Çotur 5 years ago
parent
commit
0259209eb4
  1. 4
      modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/Manage.razor.cs
  2. 5
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameMenuContributor.cs

4
modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/Manage.razor.cs

@ -68,6 +68,8 @@ namespace Volo.Abp.Account.Blazor.Pages.Account
CurrentPassword = ChangePasswordModel.CurrentPassword,
NewPassword = ChangePasswordModel.NewPassword
});
await UiMessageService.SuccessAsync(L["PasswordChanged"]);
}
protected async Task UpdatePersonalInfoAsync()
@ -80,6 +82,8 @@ namespace Volo.Abp.Account.Blazor.Pages.Account
await ProfileAppService.UpdateAsync(
ObjectMapper.Map<PersonalInfoModel, UpdateProfileDto>(PersonalInfoModel)
);
await UiMessageService.SuccessAsync(L["PersonalSettingsSaved"]);
}
}

5
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameMenuContributor.cs

@ -8,6 +8,11 @@ namespace MyCompanyName.MyProjectName.Blazor
{
public Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if(context.Menu.DisplayName != StandardMenus.Main)
{
return Task.CompletedTask;
}
var l = context.GetLocalizer<MyProjectNameResource>();
context.Menu.Items.Insert(

Loading…
Cancel
Save