From fbaad9d8bb54a59011aaaafbfb1d0aab37bf6763 Mon Sep 17 00:00:00 2001 From: Tostti Date: Fri, 15 Dec 2023 11:16:16 -0300 Subject: [PATCH] Fix reports path in toast --- plugins/main/public/react-services/reporting.js | 6 +++--- plugins/main/public/services/reporting.js | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) 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) {