From 773bdd21678470b9e96d047b4376a145bd2f6a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Tom=C3=A9?= <108268980+r-tome@users.noreply.github.com> Date: Fri, 22 Nov 2024 10:42:45 +0000 Subject: [PATCH] [PM-14554] Condition the display of members bulk actions based on selection (#11922) * Refactor organization user API service to support bulk deletion of users * Add copy for bulk user delete dialog * Add bulk user delete dialog component * Add bulk user delete functionality to members component * Make bulk user actions in the members component conditional based on the selected members * Refactor members component to only display bulk user deletion option if the Account Deprovisioning flag is enabled * Refactor bulk action visibility in members component based on Account Deprovisioning flag * Patch build process * Refactor bulk action visibility conditions in members component * Simplify status checks in members component by using loose equality and removing redundant boolean comparisons * Refactor bulk action visibility logic in members component to use computed properties for improved readability and maintainability * Refactor bulk action visibility logic in members component to eliminate redundant methods and improve readability * Revert "Patch build process" This reverts commit 917c969f004274d90e8c35ecf5fa83085a473f95. * Refactor bulk action visibility logic in members component --------- Co-authored-by: Matt Bishop --- .../members/members.component.html | 27 +++++-- .../members/members.component.ts | 76 +++++++++++++++++-- 2 files changed, 91 insertions(+), 12 deletions(-) diff --git a/apps/web/src/app/admin-console/organizations/members/members.component.html b/apps/web/src/app/admin-console/organizations/members/members.component.html index a9c5ab3e4a8..94ee97edc19 100644 --- a/apps/web/src/app/admin-console/organizations/members/members.component.html +++ b/apps/web/src/app/admin-console/organizations/members/members.component.html @@ -123,25 +123,40 @@ {{ "confirmSelected" | i18n }} - - -