From b9a1d379aa3af60bc960683cf92b99c4e8137f49 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Fri, 6 Jan 2017 16:46:31 +0100 Subject: [PATCH] #76 indicate closed cases in the case listing --- ui/app/scripts/controllers/case/CaseListCtrl.js | 3 ++- ui/app/views/partials/case/case.list.html | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/app/scripts/controllers/case/CaseListCtrl.js b/ui/app/scripts/controllers/case/CaseListCtrl.js index 939e997169..7b8c4eb46d 100644 --- a/ui/app/scripts/controllers/case/CaseListCtrl.js +++ b/ui/app/scripts/controllers/case/CaseListCtrl.js @@ -3,12 +3,13 @@ angular.module('theHiveControllers') .controller('CaseListCtrl', CaseListCtrl); - function CaseListCtrl($scope, $q, CasesUISrv, StreamStatSrv, PSearchSrv, EntitySrv, UserInfoSrv, TagSrv) { + function CaseListCtrl($scope, $q, CasesUISrv, StreamStatSrv, PSearchSrv, EntitySrv, UserInfoSrv, TagSrv, CaseResolutionStatus) { var self = this; this.showFlow = true; this.openEntity = EntitySrv.open; this.getUserInfo = UserInfoSrv; + this.CaseResolutionStatus = CaseResolutionStatus; this.uiSrv = CasesUISrv; this.uiSrv.initContext('list'); diff --git a/ui/app/views/partials/case/case.list.html b/ui/app/views/partials/case/case.list.html index 0d5b53ae29..2353884798 100644 --- a/ui/app/views/partials/case/case.list.html +++ b/ui/app/views/partials/case/case.list.html @@ -65,7 +65,12 @@

List of cases ({{$vm.list.total || 0}} of {{$vm.caseStats.count}})

#{{currentCase.caseId}} - {{currentCase.title}} -
+
+ + (Closed at {{currentCase.endDate | showDate}} as {{$vm.CaseResolutionStatus[currentCase.resolutionStatus]}}) + +
+