From 4ca35fbe181fa1c089e45c577f0a66d2ff488f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20KILI=C3=87?= Date: Tue, 26 Apr 2022 16:16:55 +0300 Subject: [PATCH 1/4] Added notification for user successfull delete action in Abp. --- .../identity/src/lib/components/users/users.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts index b8fadc81a1..72056af9b5 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts @@ -6,7 +6,7 @@ import { IdentityUserService, } from '@abp/ng.identity/proxy'; import { ePermissionManagementComponents } from '@abp/ng.permission-management'; -import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared'; +import {Confirmation, ConfirmationService, ToasterService} from '@abp/ng.theme.shared'; import { EXTENSIONS_IDENTIFIER, FormPropData, @@ -75,6 +75,7 @@ export class UsersComponent implements OnInit { public readonly list: ListService, protected confirmationService: ConfirmationService, protected service: IdentityUserService, + private toasterService: ToasterService, protected fb: FormBuilder, protected injector: Injector, ) {} @@ -163,7 +164,9 @@ export class UsersComponent implements OnInit { }) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.service.delete(id).subscribe(() => this.list.get()); + this.service.delete(id).subscribe(() => { + this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); + this.list.get()}); } }); } From 2c7f375d1356bd2676e8b25eae5e6718ea4b5e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20KILI=C3=87?= Date: Fri, 29 Apr 2022 16:47:06 +0300 Subject: [PATCH 2/4] Added notification for all successfull delete actions in Abp. --- .../identity/src/lib/components/roles/roles.component.ts | 4 +++- .../src/lib/components/tenants/tenants.component.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts index 57f33c11da..b7d7aff541 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts @@ -1,7 +1,7 @@ import { ListService, PagedAndSortedResultRequestDto, PagedResultDto } from '@abp/ng.core'; import { IdentityRoleDto, IdentityRoleService } from '@abp/ng.identity/proxy'; import { ePermissionManagementComponents } from '@abp/ng.permission-management'; -import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared'; +import {Confirmation, ConfirmationService, ToasterService} from '@abp/ng.theme.shared'; import { EXTENSIONS_IDENTIFIER, FormPropData, @@ -47,6 +47,7 @@ export class RolesComponent implements OnInit { constructor( public readonly list: ListService, protected confirmationService: ConfirmationService, + private toasterService: ToasterService, protected injector: Injector, protected service: IdentityRoleService, ) {} @@ -100,6 +101,7 @@ export class RolesComponent implements OnInit { }) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { + this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); this.service.delete(id).subscribe(() => this.list.get()); } }); diff --git a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts index dfee9ada2e..6723ae8810 100644 --- a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts +++ b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts @@ -1,7 +1,7 @@ import { ListService, PagedResultDto } from '@abp/ng.core'; import { eFeatureManagementComponents } from '@abp/ng.feature-management'; import { GetTenantsInput, TenantDto, TenantService } from '@abp/ng.tenant-management/proxy'; -import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared'; +import {Confirmation, ConfirmationService, ToasterService} from '@abp/ng.theme.shared'; import { EXTENSIONS_IDENTIFIER, FormPropData, @@ -53,6 +53,7 @@ export class TenantsComponent implements OnInit { private injector: Injector, private confirmationService: ConfirmationService, private service: TenantService, + private toasterService: ToasterService, private fb: FormBuilder, ) {} @@ -107,6 +108,7 @@ export class TenantsComponent implements OnInit { ) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { + this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); this.service.delete(id).subscribe(() => this.list.get()); } }); From a30adc6da0b96dfd212740954f7b062a22cae9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20KILI=C3=87?= Date: Fri, 29 Apr 2022 17:00:00 +0300 Subject: [PATCH 3/4] Edited translation key. --- .../identity/src/lib/components/roles/roles.component.ts | 2 +- .../identity/src/lib/components/users/users.component.ts | 2 +- .../src/lib/components/tenants/tenants.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts index b7d7aff541..8be77544bf 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts @@ -101,7 +101,7 @@ export class RolesComponent implements OnInit { }) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); + this.toasterService.success('AbpUi::SuccessfullySaved'); this.service.delete(id).subscribe(() => this.list.get()); } }); diff --git a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts index 72056af9b5..fbe9e5ad1a 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts @@ -165,7 +165,7 @@ export class UsersComponent implements OnInit { .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service.delete(id).subscribe(() => { - this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); + this.toasterService.success('AbpUi::SuccessfullySaved'); this.list.get()}); } }); diff --git a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts index 6723ae8810..2e087a86f3 100644 --- a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts +++ b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts @@ -108,7 +108,7 @@ export class TenantsComponent implements OnInit { ) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); + this.toasterService.success('AbpUi::SuccessfullySaved'); this.service.delete(id).subscribe(() => this.list.get()); } }); From b9968fac2a6f47637029839d10cb9118b9fb727e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20KILI=C3=87?= Date: Thu, 5 May 2022 14:30:08 +0300 Subject: [PATCH 4/4] Changed Success Message. --- .../identity/src/lib/components/roles/roles.component.ts | 2 +- .../identity/src/lib/components/users/users.component.ts | 2 +- .../src/lib/components/tenants/tenants.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts index 8be77544bf..4a95deb8b9 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts @@ -101,7 +101,7 @@ export class RolesComponent implements OnInit { }) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.toasterService.success('AbpUi::SuccessfullySaved'); + this.toasterService.success('AbpUi::SuccessfullyDeleted'); this.service.delete(id).subscribe(() => this.list.get()); } }); diff --git a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts index fbe9e5ad1a..9fd6987d19 100644 --- a/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts +++ b/npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts @@ -165,7 +165,7 @@ export class UsersComponent implements OnInit { .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service.delete(id).subscribe(() => { - this.toasterService.success('AbpUi::SuccessfullySaved'); + this.toasterService.success('AbpUi::SuccessfullyDeleted'); this.list.get()}); } }); diff --git a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts index 2e087a86f3..db46332546 100644 --- a/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts +++ b/npm/ng-packs/packages/tenant-management/src/lib/components/tenants/tenants.component.ts @@ -108,7 +108,7 @@ export class TenantsComponent implements OnInit { ) .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { - this.toasterService.success('AbpUi::SuccessfullySaved'); + this.toasterService.success('AbpUi::SuccessfullyDeleted'); this.service.delete(id).subscribe(() => this.list.get()); } });