From 3c58c5ce8ddd5d475a02cafedd7f50d10bdb5aac Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Mon, 9 Nov 2020 17:06:10 +0100 Subject: [PATCH] #1611 Add tag autocomplete in case template form --- .../components/organisation/OrgCaseTemplateListCmp.js | 6 +++++- .../app/views/components/org/case-template/details.html | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/app/scripts/components/organisation/OrgCaseTemplateListCmp.js b/frontend/app/scripts/components/organisation/OrgCaseTemplateListCmp.js index ef49949f5c..2eca269f62 100644 --- a/frontend/app/scripts/components/organisation/OrgCaseTemplateListCmp.js +++ b/frontend/app/scripts/components/organisation/OrgCaseTemplateListCmp.js @@ -3,7 +3,7 @@ angular.module('theHiveComponents') .component('orgCaseTemplateList', { - controller: function($uibModal, $scope, CaseTemplateSrv, UserSrv, AuthenticationSrv, NotificationSrv, UtilsSrv, ModalUtilsSrv) { + controller: function($uibModal, $scope, CaseTemplateSrv, TagSrv, UserSrv, AuthenticationSrv, NotificationSrv, UtilsSrv, ModalUtilsSrv) { var self = this; self.task = ''; @@ -327,6 +327,10 @@ } }); }; + + self.getTags = function(query) { + return TagSrv.fromCases(query); + }; }, controllerAs: '$vm', templateUrl: 'views/components/org/case-template/case-templates.html', diff --git a/frontend/app/views/components/org/case-template/details.html b/frontend/app/views/components/org/case-template/details.html index 60e9a8221f..cf7d7403fa 100644 --- a/frontend/app/views/components/org/case-template/details.html +++ b/frontend/app/views/components/org/case-template/details.html @@ -61,7 +61,9 @@

Case basic information

- + + +

These will be the default case tags