improve messages of account.blazor

pull/5361/head^2
Ahmet Çotur 5 years ago
parent f88eb3291b
commit 0259209eb4

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

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

Loading…
Cancel
Save