diff --git a/www/src/app/pages/jobs/job.controller.js b/www/src/app/pages/jobs/job.controller.js index 0cb5980a8..2b50356d2 100644 --- a/www/src/app/pages/jobs/job.controller.js +++ b/www/src/app/pages/jobs/job.controller.js @@ -6,4 +6,9 @@ export default class JobController { this.$log = $log; } -} + + $onInit() { + this.protectDownloadsWith = this.main.config.config.protectDownloadsWith; + this.hasFileArtifact = this.job.report.artifacts.find(item => item.dataType === 'file'); + } +} \ No newline at end of file diff --git a/www/src/app/pages/jobs/job.page.html b/www/src/app/pages/jobs/job.page.html index 3551e1247..b8ceea0b8 100644 --- a/www/src/app/pages/jobs/job.page.html +++ b/www/src/app/pages/jobs/job.page.html @@ -30,6 +30,9 @@
# | @@ -40,8 +43,15 @@{{$index + 1}} | {{artifact.dataType}} |
-
- {{(artifact.attachment.name || artifact.data) | fang}}
+
+ {{artifact.attachment.name| fang}}
+
+ (Download)
+
+
+
+ {{artifact.data | fang}}
{
- return AnalyzerService.list()
- .then(() => $q.resolve(AnalyzerService.getTypes()))
- .catch(err => $q.reject(err));
- },
+ datatypes: ($q, AnalyzerService) => AnalyzerService.list()
+ .then(() => $q.resolve(AnalyzerService.getTypes()))
+ .catch(err => $q.reject(err)),
jobtypes: () => ['analyzer', 'responder'],
analyzers: AnalyzerService =>
AnalyzerService.list().then(analyzers =>
@@ -97,6 +95,9 @@ const jobsModule = angular
templateUrl: jobTpl,
bindings: {
job: '<'
+ },
+ require: {
+ main: '^^mainPage'
}
})
.component('jobDetails', {
|
---|