From c28660f6794e083e04ef2abb210ae40381c82752 Mon Sep 17 00:00:00 2001 From: github-pba Date: Tue, 9 Jul 2019 10:25:36 +0200 Subject: [PATCH 1/2] 1006 - Feature request - sort case templates by name for cleaner UI --- ui/app/scripts/services/CaseTemplate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/scripts/services/CaseTemplate.js b/ui/app/scripts/services/CaseTemplate.js index ac0b6437a2..3de98f1246 100644 --- a/ui/app/scripts/services/CaseTemplate.js +++ b/ui/app/scripts/services/CaseTemplate.js @@ -5,7 +5,8 @@ var defer = $q.defer(); $http.post('./api/case/template/_search', {}, { params: { - range: 'all' + range: 'all', + sort: '+name' } }).then(function(response) { defer.resolve(response.data); From 4217855db0ab3b346d0b7bbd12e85641109f3e7a Mon Sep 17 00:00:00 2001 From: github-pba Date: Tue, 9 Jul 2019 10:29:26 +0200 Subject: [PATCH 2/2] TheHive-Project#1006 Sort case templates by name for cleaner UI --- ui/app/scripts/services/CaseTemplate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/scripts/services/CaseTemplate.js b/ui/app/scripts/services/CaseTemplate.js index ac0b6437a2..3de98f1246 100644 --- a/ui/app/scripts/services/CaseTemplate.js +++ b/ui/app/scripts/services/CaseTemplate.js @@ -5,7 +5,8 @@ var defer = $q.defer(); $http.post('./api/case/template/_search', {}, { params: { - range: 'all' + range: 'all', + sort: '+name' } }).then(function(response) { defer.resolve(response.data);