diff --git a/frontend/app/scripts/components/organisation/OrgCustomTagsListCmp.js b/frontend/app/scripts/components/organisation/OrgCustomTagsListCmp.js index a61b8e5ca2..17c35a4418 100644 --- a/frontend/app/scripts/components/organisation/OrgCustomTagsListCmp.js +++ b/frontend/app/scripts/components/organisation/OrgCustomTagsListCmp.js @@ -3,7 +3,7 @@ angular.module('theHiveComponents') .component('orgCustomTagsList', { - controller: function ($scope, PaginatedQuerySrv, FilteringSrv, TaxonomyCacheSrv, TagSrv, UserSrv, ModalUtilsSrv, NotificationSrv) { + controller: function ($scope, PaginatedQuerySrv, QuerySrv, FilteringSrv, TaxonomyCacheSrv, TagSrv, UserSrv, ModalUtilsSrv, NotificationSrv) { var self = this; self.tags = []; @@ -30,6 +30,18 @@ self.filtering.setPageSize(newValue); }); }); + + QuerySrv.query( + 'v1', + [{ '_name': 'countFreetags' }], + { + params: { + name: 'all-custom-tags.count' + } + }) + .then(function (response) { + self.freetagsCount = response.data; + }); }; this.load = function () { @@ -40,6 +52,7 @@ skipStream: true, sort: self.filtering.context.sort, loadAll: false, + limitedCount: true, pageSize: self.filtering.context.pageSize, filter: this.filtering.buildQuery(), operations: [ diff --git a/frontend/app/views/components/org/custom-tags/tag-list.html b/frontend/app/views/components/org/custom-tags/tag-list.html index e9f81371e1..481d50066b 100644 --- a/frontend/app/views/components/org/custom-tags/tag-list.html +++ b/frontend/app/views/components/org/custom-tags/tag-list.html @@ -1,18 +1,18 @@
- +- - Name - - - - + + Name + + + + |
Colour
@@ -48,17 +51,25 @@
| |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |
- |
- {{tag.extraData.usage.case}} | -{{tag.extraData.usage.alert}} | -{{tag.extraData.usage.observable}} | -{{tag.extraData.usage.caseTemplate}} | +{{tag.extraData.usage.case | limitedCount}} | +{{tag.extraData.usage.alert | limitedCount}} | +{{tag.extraData.usage.observable | limitedCount}} | +{{tag.extraData.usage.caseTemplate | limitedCount}} |
|
- |