Skip to content

Commit

Permalink
[Backport 4.5.1-7.10] Change the method to make the redirect (#5595)
Browse files Browse the repository at this point in the history
Change the method to make the redirect (#5539)

* Change the metod to make the redirect

* Remove unused code

* Add changelog

---------

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 74927fb)

Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and yenienserrano authored Jun 27, 2023
1 parent 7493a17 commit f4fbeae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
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 - Kibana 7.10.2, 7.16.x, 7.17.x - 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 @@ -320,7 +320,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
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,
};

0 comments on commit f4fbeae

Please sign in to comment.