diff --git a/frontend/app/scripts/services/api/ProfileSrv.js b/frontend/app/scripts/services/api/ProfileSrv.js index 3a1becdfac..1523daa2ac 100644 --- a/frontend/app/scripts/services/api/ProfileSrv.js +++ b/frontend/app/scripts/services/api/ProfileSrv.js @@ -1,7 +1,7 @@ -(function() { +(function () { 'use strict'; angular.module('theHiveServices') - .service('ProfileSrv', function($http) { + .service('ProfileSrv', function ($http) { var self = this; var baseUrl = './api/profile'; @@ -46,6 +46,7 @@ 'manageShare', 'manageObservable', 'manageTask', + 'manageProcedure', 'manageAction', 'manageAnalyse', 'accessTheHiveFS' @@ -59,6 +60,7 @@ manageShare: 'Manage sharing', manageObservable: 'Manage observables', manageTask: 'Manage tasks', + manageProcedure: 'Manage TTPs', manageAction: 'Run Cortex responders', manageAnalyse: 'Run Cortex analyzer', accessTheHiveFS: 'Access to TheHiveFS service' @@ -66,32 +68,34 @@ } }; - this.list = function() { - return $http.get(baseUrl, {params: { - range: 'all' - }}); + this.list = function () { + return $http.get(baseUrl, { + params: { + range: 'all' + } + }); }; - this.get = function(name) { + this.get = function (name) { return $http.get(baseUrl + '/' + name); }; - this.map = function() { + this.map = function () { return self.list() - .then(function(response) { + .then(function (response) { return _.indexBy(response.data, 'name'); }); }; - this.create = function(profile) { + this.create = function (profile) { return $http.post(baseUrl, profile); }; - this.update = function(id, profile) { + this.update = function (id, profile) { return $http.patch(baseUrl + '/' + id, profile); }; - this.remove = function(id) { + this.remove = function (id) { return $http.delete(baseUrl + '/' + id); }; }); diff --git a/frontend/app/views/partials/case/case.procedures.html b/frontend/app/views/partials/case/case.procedures.html index 27a86a1415..37198179e4 100644 --- a/frontend/app/views/partials/case/case.procedures.html +++ b/frontend/app/views/partials/case/case.procedures.html @@ -1,6 +1,7 @@
-
+
@@ -11,7 +12,8 @@

- + @@ -28,7 +30,8 @@

Tactic - + @@ -36,7 +39,8 @@

Technique - + @@ -45,7 +49,8 @@

Occur Date - + @@ -55,29 +60,36 @@

-
+
- + {{$vm.tactics[proc.tactic].label}} - +
- {{proc.patternId}} - {{proc.extraData.patternParent.name}}:{{proc.extraData.pattern.name}} + {{proc.patternId}} - + {{proc.extraData.patternParent.name}}:{{proc.extraData.pattern.name}} - +
- {{proc.patternId}} - {{proc.extraData.pattern.name}} + {{proc.patternId}} - + {{proc.extraData.pattern.name}} - +
@@ -86,11 +98,13 @@

--> @@ -100,35 +114,44 @@

- / + /
- {{proc._createdAt | shortDate}} + {{proc._createdAt | shortDate}}
- {{(proc._updatedAt | shortDate) || '-'}} + {{(proc._updatedAt | shortDate) || '-'}}
-
- +
+ +
+
+ {{(proc.occurDate | shortDate) || '-'}}
-
- +
+ +
-
+
+
+ Not Specified +
diff --git a/frontend/app/views/partials/case/procedures/toolbar.html b/frontend/app/views/partials/case/procedures/toolbar.html index 5cf4cdb69c..763089d138 100644 --- a/frontend/app/views/partials/case/procedures/toolbar.html +++ b/frontend/app/views/partials/case/procedures/toolbar.html @@ -2,7 +2,7 @@