mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
save: save reset
appearance: save button reacts to changes
This commit is contained in:
parent
8fcca6587e
commit
7a6776c61b
8 changed files with 36 additions and 18 deletions
|
@ -54,7 +54,7 @@ class Component extends React.PureComponent<Props, void> {
|
|||
|
||||
render() {
|
||||
const {
|
||||
mode, routerPoints, distance, estimated, activeSticker, logo, user, editing, title, address,
|
||||
mode, distance, estimated, changed, logo, editing,
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
|
@ -130,14 +130,14 @@ class Component extends React.PureComponent<Props, void> {
|
|||
|
||||
<div className="control-bar">
|
||||
<button
|
||||
className="highlighted cancel"
|
||||
className="highlighted cancel"
|
||||
onClick={this.props.stopEditing}
|
||||
>
|
||||
<Icon icon="icon-cancel-1" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
className="primary"
|
||||
className={classnames({ primary: changed, disabled: !changed })}
|
||||
onClick={this.startSaveMode}
|
||||
>
|
||||
<span>СХОРОНИТЬ</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue