Skip to content

Commit

Permalink
#152 Fix the analyzer run dialog to take into account the pap field
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Oct 30, 2018
1 parent c534321 commit ad28ce0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions www/src/app/pages/analyzers/analyzers.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export default class AnalyzerService {

this.$http
.get('./api/analyzer', {
params: { range: 'all', sort: '+name' }
params: {
range: 'all',
sort: '+name'
}
})
.then(
response => {
Expand Down Expand Up @@ -152,7 +155,8 @@ export default class AnalyzerService {
postData = {
attachment: artifact.attachment,
dataType: artifact.dataType,
tlp: artifact.tlp
tlp: artifact.tlp,
pap: artifact.pap
};

return this.$http({
Expand Down Expand Up @@ -189,11 +193,12 @@ export default class AnalyzerService {
data: artifact.data,
attributes: {
dataType: artifact.dataType,
tlp: artifact.tlp
tlp: artifact.tlp,
pap: artifact.pap
}
};

return this.$http.post('./api/analyzer/' + id + '/run', postData);
}
}
}
}

0 comments on commit ad28ce0

Please sign in to comment.