Skip to content

Commit

Permalink
[Backport 4.5.1-7.16] Change the method to make the redirect (#5596)
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 <[email protected]>
(cherry picked from commit 74927fb)

Co-authored-by: Ian Yenien Serrano <[email protected]>
  • Loading branch information
github-actions[bot] and yenienserrano authored Jun 27, 2023
1 parent b886e5d commit 7ddf05b
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:/wazuh/wazuh-kibana-app/pull/5539)
- Changed windows agent service name in the deploy agent wizard [#5538](https:/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 @@ -332,7 +332,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 7ddf05b

Please sign in to comment.