Enable dynamic segment edits

[PREMIUM-44]
This commit is contained in:
Pavel Dohnal
2017-11-28 13:12:18 +00:00
parent 59d09866a1
commit d761867a7d

View File

@@ -57,8 +57,6 @@ define(
if (props.item === undefined) {
this.refs.form.reset();
}
} else {
this.loadItem(props.params.id);
}
},
loadItem: function (id) {
@@ -76,6 +74,9 @@ define(
loading: false,
item: response.data,
});
if (typeof this.props.onItemLoad === 'function') {
this.props.onItemLoad(response.data);
}
}).fail(() => {
this.setState({
loading: false,