From 2fe3978d4857e3f5fca7c2695f89dc7cdd3d1632 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 28 Nov 2019 18:19:05 +0200 Subject: [PATCH] Fixed side menu bug --- monkey/monkey_island/cc/ui/src/components/Main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/Main.js b/monkey/monkey_island/cc/ui/src/components/Main.js index 923470ccd..fce10525d 100644 --- a/monkey/monkey_island/cc/ui/src/components/Main.js +++ b/monkey/monkey_island/cc/ui/src/components/Main.js @@ -97,11 +97,6 @@ class AppComponent extends AuthComponent { }; } - static isReportUrl(){ - let url = window.location.href; - return ( url.endsWith('/report/security') || url.endsWith('/report/attack') || url.endsWith('/report/zeroTrust')) - } - // Sets the property that indicates if we need to remove PBA files from state or not setRemovePBAfiles = (rmFiles) => { this.setState({removePBAfiles: rmFiles}); @@ -156,7 +151,12 @@ class AppComponent extends AuthComponent {
  • - + { + return (location.pathname === '/report/attack' + || location.pathname === '/report/zeroTrust' + || location.pathname === '/report/security') + }}> 4. Security Reports {this.state.completedSteps.report_done ?