From ef51ca4b823015470fc7eafebcbcf015788def63 Mon Sep 17 00:00:00 2001 From: Luciano Gorza <103193307+lucianogorza@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:34:27 -0300 Subject: [PATCH] Remove groups.js angular controller (#6543) * Remove groups.js angular controller * Update CHANGELOG * Fix unit test * Update unit test snapshot * Fix WzButtonPermissions --------- Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com> Co-authored-by: Federico Rodriguez --- CHANGELOG.md | 1 + .../components/common/permissions/button.tsx | 1 + .../__snapshots__/groups-main.test.tsx.snap | 17 -- .../groups/actions-buttons-agents.js | 33 ++-- .../management/groups/groups-main.js | 25 +-- .../management/groups/groups-main.test.tsx | 15 -- .../public/controllers/management/groups.js | 180 ------------------ .../public/controllers/management/index.js | 2 - .../templates/management/management.html | 19 -- 9 files changed, 28 insertions(+), 265 deletions(-) delete mode 100644 plugins/main/public/controllers/management/groups.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 4450a84152..9eb64edb79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to the Wazuh app project will be documented in this file. - Change the view of API is down and check connection to Server APIs application [#6337](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6337) - Changed the usage of the endpoint GET /groups/{group_id}/files/{file_name} [#6385](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6385) - Refactoring and redesign endpoints summary visualizations [#6268](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6268) +- Remove AngularJS controller for manage groups [#6543](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6543) ### Fixed diff --git a/plugins/main/public/components/common/permissions/button.tsx b/plugins/main/public/components/common/permissions/button.tsx index 419477fc2e..fb0acc4f72 100644 --- a/plugins/main/public/components/common/permissions/button.tsx +++ b/plugins/main/public/components/common/permissions/button.tsx @@ -70,6 +70,7 @@ export const WzButtonPermissions = ({ return additionalProps; }} + {...rest} >