Repository: brooklyn-ui Updated Branches: refs/heads/master d11f6e3b7 -> de857cfec
allow palette footer to be customised Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/837c6dc5 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/837c6dc5 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/837c6dc5 Branch: refs/heads/master Commit: 837c6dc58fc1044f152a8999af026865188a1bcc Parents: d11f6e3 Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Authored: Mon Sep 17 14:01:02 2018 +0100 Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Committed: Mon Sep 17 14:01:02 2018 +0100 ---------------------------------------------------------------------- .../components/catalog-selector/catalog-selector.directive.js | 3 +++ .../components/catalog-selector/catalog-selector.template.html | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/837c6dc5/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js ---------------------------------------------------------------------- diff --git a/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js b/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js index 348d0c0..80f6397 100644 --- a/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js +++ b/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js @@ -235,6 +235,9 @@ function controller($scope, $element, $q, $uibModal, $log, $templateCache, palet // downstream can override this to insert lines below the header $scope.customSubHeadTemplateName = 'composer-palette-empty-sub-head'; $templateCache.put($scope.customSubHeadTemplateName, ''); + + $scope.customFooterTemplateName = 'composer-palette-empty-foort'; + $templateCache.put($scope.customFooterTemplateName, ''); // allow downstream to configure this controller and/or scope (composerOverrides.configurePaletteController || function() {})(this, $scope, $element); http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/837c6dc5/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.template.html ---------------------------------------------------------------------- diff --git a/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.template.html b/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.template.html index 40c9bd6..3b5f1d1 100644 --- a/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.template.html +++ b/ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.template.html @@ -61,7 +61,7 @@ <!-- here and below, col-xs-3 or -4 or -2 all work giving different densities; this could be configurable ("compressed"=xs-2 w no labels, "normal"=xs-3, "big"=xs-4) --> <div class="col-xs-3 catalog-palette-item" - ng-repeat="item in searchedItems = (filterPaletteItems(items) | catalogSelectorSearch:search | catalogSelectorSort:family) | orderBy:state.currentOrder | limitTo:pagination.itemsPerPage:(pagination.page-1)*pagination.itemsPerPage track by (item.containingBundle + ':' + item.symbolicName + ':' + item.version)" + ng-repeat="item in searchedItems = (filterPaletteItems(items | catalogSelectorSearch:search) | catalogSelectorSort:family) | orderBy:state.currentOrder | limitTo:pagination.itemsPerPage:(pagination.page-1)*pagination.itemsPerPage track by (item.containingBundle + ':' + item.symbolicName + ':' + item.version)" ng-click="onSelectItem(item)"> <div class="item" draggable="true" ng-dragstart="onDragItem(item, $event)" ng-dragend="onDragEnd(item, $event)"> <div class="item-logo"> @@ -95,6 +95,8 @@ </div> <div uib-pagination total-items="searchedItems.length" items-per-page="pagination.itemsPerPage" ng-model="pagination.page" boundary-link-numbers="true" rotate="false" max-size="4" ng-show="searchedItems.length > pagination.itemsPerPage" class="pagination-sm pull-right"></div> + + <ng-include src="customFooterTemplateName"/> </div> </div>