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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with
15 additions and
11 deletions
-
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
-
modules/blogging/src/Volo.Blogging.Admin.Web/Pages/Blogging/Admin/Blogs/index.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Blogs/index.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/details.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/index.js
-
modules/docs/src/Volo.Docs.Admin.Web/Pages/Docs/Admin/Projects/index.js
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor.cs
-
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/index.js
-
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/index.js
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/Index.js
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ $(function () { |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
@ -111,7 +111,7 @@ $(function () { |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ $(function () { |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ $(function (){ |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -83,7 +83,7 @@ $(function (){ |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -43,7 +43,7 @@ $(function () { |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -57,7 +57,7 @@ $(function () { |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
@ -107,6 +107,7 @@ public partial class FeatureManagementModal |
|
|
|
await CurrentApplicationConfigurationCacheResetService.ResetAsync(); |
|
|
|
|
|
|
|
await InvokeAsync(Modal.Hide); |
|
|
|
await Notify.Success(L["SavedSuccessfully"]); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -63,7 +63,7 @@ |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
@ -159,6 +159,7 @@ public partial class PermissionManagementModal |
|
|
|
await CurrentApplicationConfigurationCacheResetService.ResetAsync(); |
|
|
|
|
|
|
|
await InvokeAsync(_modal.Hide); |
|
|
|
await Notify.Success(L["SavedSuccessfully"]); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -57,7 +57,7 @@ |
|
|
|
.delete(data.record.id) |
|
|
|
.then(function () { |
|
|
|
_dataTable.ajax.reloadEx(); |
|
|
|
abp.notify.success(l('SuccessfullyDeleted')); |
|
|
|
abp.notify.success(l('DeletedSuccessfully')); |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
|