From b96804776aabfa6b942a2f23c74c2a28314953de Mon Sep 17 00:00:00 2001 From: SquirrelDevelopper Date: Wed, 5 Feb 2025 10:11:25 +0100 Subject: [PATCH] Add 'Devices' component to '/manage' route and remove unused agent-related quick actions The '/manage' route now includes the 'Devices' component for better navigation. Removed outdated agent management quick actions like 'Update Agent' and 'Reinstall Agent' from the DeviceQuickActionReference file to streamline functionality and --- client/config/routes.ts | 1 + .../DeviceQuickActionReference.tsx | 39 ------------------- 2 files changed, 1 insertion(+), 39 deletions(-) diff --git a/client/config/routes.ts b/client/config/routes.ts index ce248de4..b086fadc 100644 --- a/client/config/routes.ts +++ b/client/config/routes.ts @@ -21,6 +21,7 @@ export default [ path: '/manage', name: 'Manage', icon: 'GlobalOutlined', + component: './Devices', routes: [ { name: 'Devices', diff --git a/client/src/components/DeviceComponents/DeviceQuickAction/DeviceQuickActionReference.tsx b/client/src/components/DeviceComponents/DeviceQuickAction/DeviceQuickActionReference.tsx index 900a070d..16685a6c 100644 --- a/client/src/components/DeviceComponents/DeviceQuickAction/DeviceQuickActionReference.tsx +++ b/client/src/components/DeviceComponents/DeviceQuickAction/DeviceQuickActionReference.tsx @@ -100,45 +100,6 @@ const DeviceQuickActionReference: QuickActionReferenceType[] = [ onAdvancedMenu: true, type: Types.DIVIDER, }, - { - type: Types.PLAYBOOK, - playbookQuickRef: 'updateAgent', - onAdvancedMenu: true, - icon: , - label: 'Update Agent', - }, - { - type: Types.PLAYBOOK, - playbookQuickRef: 'reinstallAgent', - onAdvancedMenu: true, - icon: , - label: 'Reinstall Agent', - }, - { - type: Types.PLAYBOOK, - playbookQuickRef: 'restartAgent', - onAdvancedMenu: true, - icon: , - label: 'Restart Agent', - }, - { - type: Types.PLAYBOOK, - onAdvancedMenu: true, - playbookQuickRef: 'retrieveAgentLogs', - icon: , - label: 'Retrieve Agent Logs', - }, - { - onAdvancedMenu: true, - type: Types.DIVIDER, - }, - { - type: Types.PLAYBOOK, - playbookQuickRef: 'uninstallAgent', - onAdvancedMenu: true, - icon: , - label: 'Uninstall Agent', - }, { type: Types.ACTION, action: Actions.DELETE,