diff --git a/monkey/monkey_island/cc/ui/src/components/Main.js b/monkey/monkey_island/cc/ui/src/components/Main.js index 5dfe465fa..7fc9bbb80 100644 --- a/monkey/monkey_island/cc/ui/src/components/Main.js +++ b/monkey/monkey_island/cc/ui/src/components/Main.js @@ -14,7 +14,7 @@ import ReportPage from 'components/pages/ReportPage'; import LicensePage from 'components/pages/LicensePage'; import AuthComponent from 'components/AuthComponent'; import LoginPageComponent from 'components/pages/LoginPage'; -import AttckPage from 'components/pages/AttckPage' +import AttckPage from 'components/pages/AttackPage' import 'normalize.css/normalize.css'; import 'react-data-components/css/table-twbs.css'; diff --git a/monkey/monkey_island/cc/ui/src/components/attack/MatrixComponent.js b/monkey/monkey_island/cc/ui/src/components/attack/MatrixComponent.js index 128a230be..309e2bbea 100644 --- a/monkey/monkey_island/cc/ui/src/components/attack/MatrixComponent.js +++ b/monkey/monkey_island/cc/ui/src/components/attack/MatrixComponent.js @@ -80,7 +80,6 @@ class MatrixComponent extends AuthComponent { }; onSubmit = () => { - console.log(this.state.matrixData); this.authFetch('/api/attack', { method: 'POST', @@ -144,7 +143,7 @@ class MatrixComponent extends AuthComponent { : ''}
-
diff --git a/monkey/monkey_island/cc/ui/src/components/pages/AttckPage.js b/monkey/monkey_island/cc/ui/src/components/pages/AttackPage.js similarity index 77% rename from monkey/monkey_island/cc/ui/src/components/pages/AttckPage.js rename to monkey/monkey_island/cc/ui/src/components/pages/AttackPage.js index a3d1b45fb..397f558e9 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/AttckPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/AttackPage.js @@ -3,7 +3,7 @@ import AuthComponent from '../AuthComponent'; import 'filepond/dist/filepond.min.css'; import MatrixComponent from '../attack/MatrixComponent' -class AttckComponent extends AuthComponent { +class AttackComponent extends AuthComponent { constructor(props) { super(props); this.currentSection = 'ATT&CK matrix'; @@ -35,9 +35,13 @@ class AttckComponent extends AuthComponent { render() { let content; - content = (); + if (Object.keys(this.state.configuration).length === 0) { + content = (

Fetching configuration...

); + } else { + content = (); + } return
{content}
; } } -export default AttckComponent; +export default AttackComponent;