Commit b4ba0cc0 authored by Florent Chehab's avatar Florent Chehab

History component adapted to setup.

parent 5b6f2861
Pipeline #35680 failed with stages
......@@ -76,7 +76,7 @@ class GenericModule extends CustomComponentForAPI {
this.setState({ alert: { open: false } });
}
handleCloseHistory = () => {
handleHistoryWasClosed = () => {
this.setState({ historyOpen: false });
};
......@@ -116,7 +116,7 @@ class GenericModule extends CustomComponentForAPI {
rawModelDataForEditor: rawModelData,
forceSave: true,
});
this.handleCloseHistory();
this.handleHistoryWasClosed();
this.handleOpenEditor();
}
......@@ -174,7 +174,7 @@ class GenericModule extends CustomComponentForAPI {
<History
factory={this}
open={this.state.historyOpen}
handleCloseHistory={this.handleCloseHistory}
handleHistoryWasClosed={this.handleHistoryWasClosed}
handleRestoreVersion={this.handleRestoreVersion}
/>
<PendingModeration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment