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 ?