From 688a984bac989cf1168e797ae88c149b31639646 Mon Sep 17 00:00:00 2001
From: Adam Mills
Date: Sat, 12 Aug 2017 20:55:54 -0400
Subject: [PATCH] Configurator updates (#386)
* Hide configurator button if no caption configured
* Put configurator links on new line
---
src/more-infos/more-info-configurator.html | 28 ++++++++--------------
1 file changed, 10 insertions(+), 18 deletions(-)
diff --git a/src/more-infos/more-info-configurator.html b/src/more-infos/more-info-configurator.html
index 0a9ea2daad..e7148aab70 100644
--- a/src/more-infos/more-info-configurator.html
+++ b/src/more-infos/more-info-configurator.html
@@ -46,13 +46,14 @@
[[stateObj.attributes.description]]
-
- [[stateObj.attributes.link_name]]
-
+
+
+ [[stateObj.attributes.link_name]]
+
+
@@ -72,7 +73,7 @@
>
-
+
- [[submitCaption]]
+ [[stateObj.attributes.submit_caption]]
@@ -116,11 +117,6 @@ Polymer({
value: false,
},
- submitCaption: {
- type: String,
- computed: 'computeSubmitCaption(stateObj)',
- },
-
fieldInput: {
type: Object,
value: function () { return {}; },
@@ -131,10 +127,6 @@ Polymer({
return stateObj.state === 'configure';
},
- computeSubmitCaption: function (stateObj) {
- return stateObj.attributes.submit_caption || 'Set configuration';
- },
-
fieldChanged: function (ev) {
var el = ev.target;
this.fieldInput[el.name] = el.value;