Browse Source

Adding toaster notifications after create, update operations

pull/19344/head
liangshiwei 3 years ago
parent
commit
241fd737ac
  1. 2
      framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
  2. 1
      modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor.cs
  3. 1
      modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs

2
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

@ -480,6 +480,7 @@ public abstract class AbpCrudPageBase<
await GetEntitiesAsync();
await InvokeAsync(CreateModal!.Hide);
await Notify.Success(L["SavedSuccessfully"]);
}
protected virtual async Task UpdateEntityAsync()
@ -518,6 +519,7 @@ public abstract class AbpCrudPageBase<
await GetEntitiesAsync();
await InvokeAsync(EditModal!.Hide);
await Notify.Success(L["SavedSuccessfully"]);
}
protected virtual async Task DeleteEntityAsync(TListViewModel entity)

1
modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor.cs

@ -107,6 +107,7 @@ public partial class FeatureManagementModal
await CurrentApplicationConfigurationCacheResetService.ResetAsync();
await InvokeAsync(Modal.Hide);
await Notify.Success(L["SavedSuccessfully"]);
}
catch (Exception ex)
{

1
modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs

@ -159,6 +159,7 @@ public partial class PermissionManagementModal
await CurrentApplicationConfigurationCacheResetService.ResetAsync();
await InvokeAsync(_modal.Hide);
await Notify.Success(L["SavedSuccessfully"]);
}
catch (Exception ex)
{

Loading…
Cancel
Save