diff --git a/app/scripts/query/query.controllers.ts b/app/scripts/query/query.controllers.ts index e1621abac..37ead04d9 100755 --- a/app/scripts/query/query.controllers.ts +++ b/app/scripts/query/query.controllers.ts @@ -55,7 +55,8 @@ module ngApp.query.controllers { private UserService: IUserService, private CoreService: ICoreService, private SearchTableFilesModel: TableiciousConfig, - private SearchTableParticipantsModel: TableiciousConfig) { + private SearchTableParticipantsModel: TableiciousConfig, + SearchChartConfigs) { var data = $state.current.data || {}; this.QState.setActive(data.tab, "active"); CoreService.setPageTitle("Query"); @@ -72,25 +73,8 @@ module ngApp.query.controllers { $scope.fileTableConfig = this.SearchTableFilesModel; $scope.participantTableConfig = this.SearchTableParticipantsModel; - this.projectIdChartConfig = { - key: "project_id", - textValue: "file_size.value", - textFilter: "size", - label: "file", - sortKey: "doc_count", - defaultText: "project" - }; - - this.primarySiteChartConfig = { - key: "primary_site", - textValue: "file_size.value", - textFilter: "size", - label: "file", - sortKey: "doc_count", - defaultText: "primary site" - }; - this.refresh(); + this.chartConfigs = SearchChartConfigs; } refresh() { diff --git a/app/scripts/query/templates/query.summary.html b/app/scripts/query/templates/query.summary.html index f30a7c894..2c2773e0b 100644 --- a/app/scripts/query/templates/query.summary.html +++ b/app/scripts/query/templates/query.summary.html @@ -8,27 +8,46 @@
-
- +
+
-
- +
+
-
- +
+
-
- -
-
- +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
diff --git a/app/scripts/query/tests/query.tests.js b/app/scripts/query/tests/query.tests.js index 3504a3ee8..9b6d7ff5b 100644 --- a/app/scripts/query/tests/query.tests.js +++ b/app/scripts/query/tests/query.tests.js @@ -1,7 +1,8 @@ describe('Query:', function () { // Initialization of the AngularJS application before each test case - beforeEach(module('ngApp.query', 'ngProgressLite', 'lz-string')); + beforeEach(module('ngApp.query', 'ngProgressLite', 'lz-string', + "core.filters")); beforeEach(module(function ($provide) { $provide.value('RestFullResponse', {});