From f09fbf870915ec183f877c521019ea8c6edbd54c Mon Sep 17 00:00:00 2001 From: Miguel Cabrerizo <30386061+doncicuto@users.noreply.github.com> Date: Thu, 7 Dec 2023 01:25:59 +0100 Subject: [PATCH] fix: missing clear selection after delete action (#6982) Co-authored-by: Elio Bischof --- .../app/pages/actions/action-table/action-table.component.ts | 2 +- .../pages/users/user-list/user-table/user-table.component.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/console/src/app/pages/actions/action-table/action-table.component.ts b/console/src/app/pages/actions/action-table/action-table.component.ts index 7e405de33..3b617ce0a 100644 --- a/console/src/app/pages/actions/action-table/action-table.component.ts +++ b/console/src/app/pages/actions/action-table/action-table.component.ts @@ -83,8 +83,8 @@ export class ActionTableComponent implements OnInit { this.mgmtService .deleteAction(action.id) .then(() => { + this.selection.clear(); this.toast.showInfo('FLOWS.DIALOG.DELETEACTION.DELETE_SUCCESS', true); - this.refreshPage(); }) .catch((error: any) => { diff --git a/console/src/app/pages/users/user-list/user-table/user-table.component.ts b/console/src/app/pages/users/user-list/user-table/user-table.component.ts index ace9a5bd4..018c8043d 100644 --- a/console/src/app/pages/users/user-list/user-table/user-table.component.ts +++ b/console/src/app/pages/users/user-list/user-table/user-table.component.ts @@ -309,6 +309,7 @@ export class UserTableComponent implements OnInit { setTimeout(() => { this.refreshPage(); }, 1000); + this.selection.clear(); this.toast.showInfo('USER.TOAST.DELETED', true); }) .catch((error) => {