From d9055b8c0ef5eef485326cb71f5ccf170519a407 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Tue, 9 May 2017 10:38:22 +0200 Subject: [PATCH] #195 Sort the list of report templates in admin section --- ui/app/scripts/controllers/admin/AdminReportTemplatesCtrl.js | 4 +++- ui/app/views/partials/admin/report-templates.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/app/scripts/controllers/admin/AdminReportTemplatesCtrl.js b/ui/app/scripts/controllers/admin/AdminReportTemplatesCtrl.js index 86bdeb97f5..8c568fa770 100644 --- a/ui/app/scripts/controllers/admin/AdminReportTemplatesCtrl.js +++ b/ui/app/scripts/controllers/admin/AdminReportTemplatesCtrl.js @@ -13,6 +13,7 @@ this.templates = []; this.analyzers = []; + this.analyzerIds = []; this.analyzerCount = 0; @@ -51,7 +52,8 @@ } }); - self.analyzerCount = _.keys(analyzersMap).length; + self.analyzerIds = _.keys(analyzersMap); + self.analyzerCount = self.analyzerIds.length; }); }; diff --git a/ui/app/views/partials/admin/report-templates.html b/ui/app/views/partials/admin/report-templates.html index 506e145692..61726ce8d1 100644 --- a/ui/app/views/partials/admin/report-templates.html +++ b/ui/app/views/partials/admin/report-templates.html @@ -31,7 +31,7 @@

Report template management

- + {{::analyzer.id}}
{{::analyzer.description}}