From c046cc5947176223be5c1c8ba0baab68601de862 Mon Sep 17 00:00:00 2001 From: Nicolas Agustin Guevara Pihen <42900763+Tostti@users.noreply.github.com> Date: Mon, 18 Dec 2023 13:05:19 -0300 Subject: [PATCH] Fix reports path in toast (#6226) * Fix reports path in toast * Update changelog * Update changelog --- CHANGELOG.md | 6 +++--- plugins/main/public/react-services/reporting.js | 6 +++--- plugins/main/public/services/reporting.js | 9 ++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab2a2d141f..f3f7820f76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ All notable changes to the Wazuh app project will be documented in this file. ### Changed -- Moved the plugin menu to platform applications into the side menu [#5840](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5840) +- Moved the plugin menu to platform applications into the side menu [#5840](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5840) [#6226](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6226) - Changed dashboards. [#6035](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6035) - Change the display order of tabs in all modules. [#6067](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6067) - Upgraded the `axios` dependency to `1.6.1` [#5062](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5062) @@ -34,7 +34,7 @@ All notable changes to the Wazuh app project will be documented in this file. - Removed the `disabled_roles` and `customization.logo.sidebar` settings [#5840](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5840) - Removed the ability to configure the visibility of modules and removed `extensions.*` settings [#5840](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5840) -- Removed the application menu in the IT Hygiene application [6176](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6176) +- Removed the application menu in the IT Hygiene application [#6176](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6176) - Removed the implicit filter of WQL language of the search bar UI [#6174](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6174) ## Wazuh v4.7.1 - OpenSearch Dashboards 2.8.0 - Revision 01 @@ -55,7 +55,7 @@ All notable changes to the Wazuh app project will be documented in this file. - Support for Wazuh 4.7.0 - Added `status detail` column in the agents table. [#5680](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5680) -- Added agent register wizard handle properly special characters in password [5738](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5738) +- Added agent register wizard handle properly special characters in password [#5738](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5738) ### Changed diff --git a/plugins/main/public/react-services/reporting.js b/plugins/main/public/react-services/reporting.js index 4fa1dee29d..13a29777b2 100644 --- a/plugins/main/public/react-services/reporting.js +++ b/plugins/main/public/react-services/reporting.js @@ -82,7 +82,7 @@ export class ReportingService { const visualizationIDList = []; for (const item of idArray) { const tmpHTMLElement = $(`#${item}`); - if(tmpHTMLElement[0]){ + if (tmpHTMLElement[0]) { this.vis2png.assignHTMLItem(item, tmpHTMLElement); visualizationIDList.push(item); } @@ -120,7 +120,7 @@ export class ReportingService { this.showToast( 'success', 'Created report', - 'Success. Go to Wazuh > Management > Reporting', + 'Success. Go to Indexer/dashboard management > Reporting', 4000 ); return; @@ -167,7 +167,7 @@ export class ReportingService { this.showToast( 'success', 'Created report', - 'Success. Go to Wazuh > Management > Reporting', + 'Success. Go to Indexer/dashboard management > Reporting', 4000 ); return; diff --git a/plugins/main/public/services/reporting.js b/plugins/main/public/services/reporting.js index 92e869c1bf..6bcc5c45d1 100644 --- a/plugins/main/public/services/reporting.js +++ b/plugins/main/public/services/reporting.js @@ -71,9 +71,8 @@ export class ReportingService { const appliedFilters = await this.visHandlers.getAppliedFilters(syscollectorFilters); const array = await this.vis2png.checkArray(idArray); - const name = `wazuh-${isAgents ? 'agents' : 'overview'}-${tab}-${ - (Date.now() / 1000) | 0 - }.pdf`; + const name = `wazuh-${isAgents ? 'agents' : 'overview'}-${tab}-${(Date.now() / 1000) | 0 + }.pdf`; const browserTimezone = moment.tz.guess(true); @@ -96,7 +95,7 @@ export class ReportingService { this.$rootScope.reportBusy = false; this.$rootScope.reportStatus = false; this.$rootScope.$applyAsync(); - ErrorHandler.info('Success. Go to Wazuh > Management > Reporting', 'Reporting'); + ErrorHandler.info('Success. Go to Indexer/dashboard management > Reporting', 'Reporting'); return; } catch (error) { @@ -134,7 +133,7 @@ export class ReportingService { this.$rootScope.reportBusy = false; this.$rootScope.reportStatus = false; this.$rootScope.$applyAsync(); - ErrorHandler.info('Success. Go to Wazuh > Management > Reporting', 'Reporting'); + ErrorHandler.info('Success. Go to Indexer/dashboard management > Reporting', 'Reporting'); return; } catch (error) {