You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by tb...@apache.org on 2018/10/30 17:33:55 UTC
[08/10] brooklyn-ui git commit: support 'mode' parameter for sections
support 'mode' parameter for sections
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/fb275c64
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/fb275c64
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/fb275c64
Branch: refs/heads/master
Commit: fb275c64f693fd9fcf2c1c83e26a65e96a3ee6aa
Parents: ca6d09c
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Thu Oct 25 10:28:09 2018 +0100
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Thu Oct 25 10:28:09 2018 +0100
----------------------------------------------------------------------
.../app/components/providers/palette-service.provider.js | 1 +
.../app/views/main/graphical/graphical.state.html | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/fb275c64/ui-modules/blueprint-composer/app/components/providers/palette-service.provider.js
----------------------------------------------------------------------
diff --git a/ui-modules/blueprint-composer/app/components/providers/palette-service.provider.js b/ui-modules/blueprint-composer/app/components/providers/palette-service.provider.js
index 6062a2c..20f29ef 100644
--- a/ui-modules/blueprint-composer/app/components/providers/palette-service.provider.js
+++ b/ui-modules/blueprint-composer/app/components/providers/palette-service.provider.js
@@ -48,6 +48,7 @@ class PaletteService {
constructor(sectionsToAdd) {
this.sections = {};
this.requiredFields = ['title', 'type', 'icon'];
+ // 'mode' is optional
for (const [id, section] of Object.entries(sectionsToAdd)) {
this.addSection(id, section);
http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/fb275c64/ui-modules/blueprint-composer/app/views/main/graphical/graphical.state.html
----------------------------------------------------------------------
diff --git a/ui-modules/blueprint-composer/app/views/main/graphical/graphical.state.html b/ui-modules/blueprint-composer/app/views/main/graphical/graphical.state.html
index dcb5060..e78b273 100644
--- a/ui-modules/blueprint-composer/app/views/main/graphical/graphical.state.html
+++ b/ui-modules/blueprint-composer/app/views/main/graphical/graphical.state.html
@@ -42,7 +42,7 @@
<br-svg type="close" class="pull-right" ng-click="vm.selectedSection = undefined"></br-svg>
</h3>
</div>
- <catalog-selector state="paletteState" family="section.type" on-select="vm.onTypeSelected(item)" class="palette-full-height-wrapper"></catalog-selector>
+ <catalog-selector state="paletteState" family="section.type" mode="{{ section.mode }}" on-select="vm.onTypeSelected(item)" class="palette-full-height-wrapper"></catalog-selector>
</div>
</div>