Skip to content

Commit

Permalink
#65 Add PAP field to analyzer run dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 30, 2018
1 parent 9669c7d commit 47659a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/resources/analyzers/echoAnalyzer/echoAnalyzer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion www/src/app/pages/analyzers/analyzer.run.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -75,4 +76,4 @@ export default class AnalyzerRunController {
cancel() {
this.$uibModalInstance.dismiss('cancel');
}
}
}
8 changes: 8 additions & 0 deletions www/src/app/pages/analyzers/analyzer.run.modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ <h3 class="modal-title">Run analysis</h3>
<select class="form-control" ng-model="$modal.observable.tlp" ng-options="tlp.value as tlp.key for tlp in $modal.Tlps" required></select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">PAP
<i class="fa fa-asterisk text-danger"></i>
</label>
<div class="col-sm-4">
<select class="form-control" ng-model="$modal.observable.pap" ng-options="pap.value as pap.key for pap in $modal.Tlps" required></select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Data Type
<i class="fa fa-asterisk text-danger"></i>
Expand Down

0 comments on commit 47659a3

Please sign in to comment.