Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the method to make the redirect #5539

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ All notable changes to the Wazuh app project will be documented in this file.

### Changed

- Changed method to perform redirection on agent table buttons [#5539](https://github.com/wazuh/wazuh-kibana-app/pull/5539)
- Changed windows agent service name in the deploy agent wizard [#5538](https://github.com/wazuh/wazuh-kibana-app/pull/5538)

## Wazuh v4.5.0 - OpenSearch Dashboards 2.6.0 - Revision 01
Expand Down
1 change: 0 additions & 1 deletion public/controllers/agent/components/agents-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ export const AgentsPreview = compose(
wzReq={this.props.tableProps.wzReq}
addingNewAgent={this.props.tableProps.addingNewAgent}
downloadCsv={this.props.tableProps.downloadCsv}
clickAction={this.props.tableProps.clickAction}
formatUIDate={(date) => formatUIDate(date)}
reload={() => this.fetchAgentStatusDetailsData()}
/>
Expand Down
11 changes: 8 additions & 3 deletions public/controllers/agent/components/agents-table.js
yenienserrano marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ export const AgentsTable = withErrorBoundary(
<EuiButtonIcon
onClick={ev => {
ev.stopPropagation();
this.props.clickAction(agent, 'default');
AppNavigate.navigateToModule(ev, 'agents', {
tab: 'welcome',
agent: agent.id,
});
}}
iconType='eye'
color={'primary'}
Expand All @@ -364,7 +367,10 @@ export const AgentsTable = withErrorBoundary(
<EuiButtonIcon
onClick={ev => {
ev.stopPropagation();
this.props.clickAction(agent, 'configuration');
AppNavigate.navigateToModule(ev, 'agents', {
tab: 'configuration',
agent: agent.id,
});
}}
color={'primary'}
iconType='wrench'
Expand Down Expand Up @@ -857,7 +863,6 @@ AgentsTable.propTypes = {
wzReq: PropTypes.func,
addingNewAgent: PropTypes.func,
downloadCsv: PropTypes.func,
clickAction: PropTypes.func,
timeService: PropTypes.func,
reload: PropTypes.func,
};