From ad28ce0527472d5a10c366bb77102f4f01d68273 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Tue, 30 Oct 2018 17:11:28 +0100 Subject: [PATCH] #152 Fix the analyzer run dialog to take into account the pap field --- www/src/app/pages/analyzers/analyzers.service.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/www/src/app/pages/analyzers/analyzers.service.js b/www/src/app/pages/analyzers/analyzers.service.js index e31fe69ec..b1061a4fe 100644 --- a/www/src/app/pages/analyzers/analyzers.service.js +++ b/www/src/app/pages/analyzers/analyzers.service.js @@ -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 => { @@ -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({ @@ -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); } } -} +} \ No newline at end of file