Skip to content
Snippets Groups Projects
Commit e9bb3f3c authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Implemented disabled save button when already saved

parent 6071d6a8
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56627 passed
......@@ -82,7 +82,16 @@ export class HistoryNavigator extends React.Component<propTypes> {
})
: ""}
</select>
<button onClick={this.handleSave}>Save</button>
<button
onClick={this.handleSave}
disabled={
this.props.historyObject
? !this.props.historyObject.hasUnsavedChanges()
: true
}
>
Save
</button>
</div>
);
}
......
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