You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/06/11 16:25:38 UTC
incubator-ignite git commit: # IGNITE-843 Tweak show details.
Repository: incubator-ignite
Updated Branches:
refs/heads/ignite-843 0d0e5816c -> 07a381554
# IGNITE-843 Tweak show details.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/07a38155
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/07a38155
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/07a38155
Branch: refs/heads/ignite-843
Commit: 07a3815548007c35e86ba65b191a1799d4ef1df0
Parents: 0d0e581
Author: AKuznetsov <ak...@gridgain.com>
Authored: Thu Jun 11 21:25:32 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
Committed: Thu Jun 11 21:25:32 2015 +0700
----------------------------------------------------------------------
modules/webconfig/nodejs/public/form-models/clusters.json | 2 +-
modules/webconfig/nodejs/views/includes/controls.jade | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/07a38155/modules/webconfig/nodejs/public/form-models/clusters.json
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/form-models/clusters.json b/modules/webconfig/nodejs/public/form-models/clusters.json
index 855899a..a75553c 100644
--- a/modules/webconfig/nodejs/public/form-models/clusters.json
+++ b/modules/webconfig/nodejs/public/form-models/clusters.json
@@ -10,7 +10,7 @@
"label": "Discovery",
"type": "dropdown-details",
"customizable": true,
- "customized": false,
+ "expanded": false,
"group": "discovery",
"model": "kind",
"placeholder": "Choose discovery",
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/07a38155/modules/webconfig/nodejs/views/includes/controls.jade
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/views/includes/controls.jade b/modules/webconfig/nodejs/views/includes/controls.jade
index 0493bdb..13186e5 100644
--- a/modules/webconfig/nodejs/views/includes/controls.jade
+++ b/modules/webconfig/nodejs/views/includes/controls.jade
@@ -89,8 +89,8 @@ mixin form-row
.col-sm-4
button.form-control(bs-select ng-model=masterMdl data-template='/select' data-placeholder='{{field.placeholder}}' bs-options='item.value as item.label for item in {{field.items}}')
+tip('field.tip')
- a(style='margin-left: 10px' ng-if='field.customizable' ng-init='lbl="Show settings"' ng-click='field.customized = !field.customized; lbl=field.customized ? "Hide settings" : lbl="Show settings"') {{lbl}}
- div.panel-details(ng-show='field.customized')
+ a(style='margin-left: 10px' ng-if='field.customizable' ng-show=masterMdl ng-init='lbl="Show settings"' ng-click='field.expanded = !field.expanded; lbl = field.expanded ? "Hide settings" : lbl="Show settings"') {{lbl}}
+ div.panel-details(ng-show='field.expanded')
.details-row(ng-repeat='detail in field.details[#{masterMdl}]')
+details-row
div(ng-switch-when='table-simple')