From 47659a3b512a4b4111ef851c1add8cd3e2d27ec9 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Mon, 30 Jul 2018 16:33:13 +0200 Subject: [PATCH] #65 Add PAP field to analyzer run dialog --- test/resources/analyzers/echoAnalyzer/echoAnalyzer.json | 2 +- www/src/app/pages/analyzers/analyzer.run.controller.js | 3 ++- www/src/app/pages/analyzers/analyzer.run.modal.html | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/test/resources/analyzers/echoAnalyzer/echoAnalyzer.json b/test/resources/analyzers/echoAnalyzer/echoAnalyzer.json index 8052f9e3a..98c3117ff 100644 --- a/test/resources/analyzers/echoAnalyzer/echoAnalyzer.json +++ b/test/resources/analyzers/echoAnalyzer/echoAnalyzer.json @@ -54,6 +54,6 @@ } ], "description": "Fake analyzer used for functional tests", - "dataTypeList": ["domain", "thehive:case", "thehive:case_task", "thehive:case_artifact", "thehive:alert"], + "dataTypeList": ["domain", "thehive:case", "thehive:case_task", "thehive:case_artifact", "thehive:alert", "thehive:case_task_log"], "command": "echoAnalyzer/echoAnalyzer.sh" } diff --git a/www/src/app/pages/analyzers/analyzer.run.controller.js b/www/src/app/pages/analyzers/analyzer.run.controller.js index bc338ccf6..7a06b573a 100644 --- a/www/src/app/pages/analyzers/analyzer.run.controller.js +++ b/www/src/app/pages/analyzers/analyzer.run.controller.js @@ -24,6 +24,7 @@ export default class AnalyzerRunController { ids: this.getActiveIds().join(',') }; this.observable.tlp = this.observable.tlp || this.Tlps[2].value; + this.observable.pap = this.observable.pap || this.Tlps[2].value; } getActiveIds() { @@ -75,4 +76,4 @@ export default class AnalyzerRunController { cancel() { this.$uibModalInstance.dismiss('cancel'); } -} +} \ No newline at end of file diff --git a/www/src/app/pages/analyzers/analyzer.run.modal.html b/www/src/app/pages/analyzers/analyzer.run.modal.html index 0008ae193..5bb84375f 100644 --- a/www/src/app/pages/analyzers/analyzer.run.modal.html +++ b/www/src/app/pages/analyzers/analyzer.run.modal.html @@ -12,6 +12,14 @@ +
+ +
+ +
+