Browse Source

Merge pull request #19344 from abpframework/liangshiwei/toaster

Adding toastr notifications after create, update operations
pull/19454/head
oykuermann 2 years ago
committed by GitHub
parent
commit
d1f285faf7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
  2. 2
      modules/blogging/src/Volo.Blogging.Admin.Web/Pages/Blogging/Admin/Blogs/index.js
  3. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js
  4. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Blogs/index.js
  5. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/details.js
  6. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js
  7. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/index.js
  8. 2
      modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Projects/index.js
  9. 1
      modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor.cs
  10. 2
      modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/index.js
  11. 2
      modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/index.js
  12. 1
      modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs
  13. 2
      modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/Index.js

4
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)
@ -544,7 +546,7 @@ public abstract class AbpCrudPageBase<
{
await GetEntitiesAsync();
await InvokeAsync(StateHasChanged);
await Notify.Success(L["SuccessfullyDeleted"]);
await Notify.Success(L["DeletedSuccessfully"]);
}
protected virtual string GetDeleteConfirmationMessage(TListViewModel entity)

2
modules/blogging/src/Volo.Blogging.Admin.Web/Pages/Blogging/Admin/Blogs/index.js

@ -49,7 +49,7 @@ $(function () {
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
},
},

2
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js

@ -111,7 +111,7 @@ $(function () {
.delete(data.record.id)
.then(function () {
dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
}
}

2
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Blogs/index.js

@ -49,7 +49,7 @@ $(function () {
.delete(data.record.id)
.then(function () {
dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
}
}

2
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/details.js

@ -75,7 +75,7 @@ $(function (){
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
}
}

2
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js

@ -83,7 +83,7 @@ $(function (){
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
}
}

2
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/index.js

@ -43,7 +43,7 @@ $(function () {
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
}
},

2
modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Projects/index.js

@ -57,7 +57,7 @@ $(function () {
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
},
},

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)
{

2
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/index.js

@ -63,7 +63,7 @@
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
},
}

2
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/index.js

@ -97,7 +97,7 @@
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
},
}

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)
{

2
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/Index.js

@ -57,7 +57,7 @@
.delete(data.record.id)
.then(function () {
_dataTable.ajax.reloadEx();
abp.notify.success(l('SuccessfullyDeleted'));
abp.notify.success(l('DeletedSuccessfully'));
});
},
}

Loading…
Cancel
Save