Skip to content
Snippets Groups Projects
Commit 0e953028 authored by Hermann's avatar Hermann
Browse files

laad eventform switch states from event.data for editing existing events (so...

laad eventform switch states from event.data for editing existing events (so price switch is on if there is a price)
parent ef1789fa
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,6 @@ export default class newEvent extends EditView {
super(vnode);
this.currentpage = 1;
if (!this.data.priority) this.data.priority = 1;
this.hasregistration = false;
this.hasprice = false;
}
beforeSubmit() {
......@@ -80,6 +78,9 @@ export default class newEvent extends EditView {
}
view() {
this.hasprice = 'price' in this.data;
this.hasregistration = 'time_advertising_start' in this.data;
const buttonRight = m(RaisedButton, {
label: 'next',
disabled: this.currentpage === 5,
......
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