Skip to content
Snippets Groups Projects
Commit a3e62aef authored by Lionel Trebuchon's avatar Lionel Trebuchon
Browse files

[export] - Correct the saving of input.

parent b7030d39
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ export default class eventWithExport extends EditView { ...@@ -35,7 +35,7 @@ export default class eventWithExport extends EditView {
required: true, required: true,
floatingLabel: true, floatingLabel: true,
dense: true, dense: true,
onChange : (newState) => {this.title_en = this.title_en;}, onChange : (newState) => {this.title_en = newState.value; console.log(this.title_en);},
value: this.title_en, value: this.title_en,
}); });
const fieldDescriptionEn = m(TextField, { const fieldDescriptionEn = m(TextField, {
...@@ -45,23 +45,30 @@ export default class eventWithExport extends EditView { ...@@ -45,23 +45,30 @@ export default class eventWithExport extends EditView {
dense: true, dense: true,
multiLine: true, multiLine: true,
rows: 6, rows: 6,
onChange : (newState) => {this.fieldDescriptionEn = this.fieldDescriptionEn;}, onChange : (newState) => {this.fieldDescriptionEn = newState.value; console.log(this.fieldDescriptionEn);},
value: this.fieldDescriptionEn, value: this.fieldDescriptionEn,
}); });
// Needs administrator (Kulturi). // Needs administrator (Kulturi).
const fieldLocation = m(TextField, { const fieldLocation = m(TextField, {
label: 'Location:', label: 'Location:',
floatingLabel: true, floatingLabel: true,
required: true, required: true,
onChange : (newState) => {this.fieldLocation = this.fieldLocation;}, onChange : (newState) => {this.fieldLocation = newState.value; console.log(this.fieldLocation);},
value: this.fieldLocation, value: this.fieldLocation,
}); });
// Bottom.
const buttonMaker = m(Button, { const buttonMaker = m(Button, {
label: "Submit Request!", // console.log(JSON.stringify(this.keyDescriptors)),
onClick: () => alert("You did not finish the editing of the fields.") label: "Submit Request!",
onClick: () => alert("You did not finish the editing of the fields.")
}); });
return m('div', [ // Return!
return m('div', {
style: { height: '100%', 'overflow-y': 'scroll'}
}, [
m('h1', 'For the event creator:', fieldTitleEn , fieldDescriptionEn, 'For the AMIV administrator:', fieldLocation), m('h1', 'For the event creator:', fieldTitleEn , fieldDescriptionEn, 'For the AMIV administrator:', fieldLocation),
m('div.footer', buttonMaker), m('div.footer', buttonMaker),
]); ]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment