Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix configurator #313

Merged
merged 1 commit into from
Jun 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/more-infos/more-info-configurator.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<link rel='import' href='../../bower_components/polymer/polymer.html'>

<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout-classes.html">
<link rel='import' href='../../bower_components/iron-input/iron-input.html'>

<link rel='import' href='../../bower_components/paper-spinner/paper-spinner.html'>
<link rel='import' href='../../bower_components/paper-button/paper-button.html'>
<link rel='import' href='../../bower_components/paper-input/paper-input-container.html'>
<link rel='import' href='../../bower_components/paper-input/paper-input.html'>

<dom-module id='more-info-configurator'>
<template>
Expand Down Expand Up @@ -66,10 +64,11 @@
</p>

<template is='dom-repeat' items='[[stateObj.attributes.fields]]'>
<paper-input-container id='paper-input-fields-{{item.id}}'>
<label>[[item.name]]</label>
<input is="iron-input" type="[[item.type]]" id='[[item.id]]' on-change="fieldChanged"/>
</paper-input-container>
<paper-input
label='[[item.name]]'
name='[[item.id]]'
on-change='fieldChanged'
></paper-input>
</template>

<p class='submit'>
Expand Down Expand Up @@ -122,7 +121,8 @@
},

fieldInput: {
type: Object, value: {},
type: Object,
value: function () { return {}; },
},
},

Expand All @@ -136,7 +136,7 @@

fieldChanged: function (ev) {
var el = ev.target;
this.fieldInput[el.id] = el.value;
this.fieldInput[el.name] = el.value;
},

submitClicked: function () {
Expand Down