added changeMode on stopEditing

This commit is contained in:
muerwre 2018-09-03 10:33:51 +07:00
parent 5c892c7961
commit 9e53969d53
3 changed files with 7 additions and 4 deletions

View file

@ -125,7 +125,7 @@ export class EditorPanel extends React.PureComponent {
<div className={classnames('panel right', { active: !editing })}> <div className={classnames('panel right', { active: !editing })}>
<div className="control-bar"> <div className="control-bar">
<button className="success" onClick={this.startEditing}> <button className="success single" onClick={this.startEditing}>
<Icon icon="icon-router" /> <Icon icon="icon-router" />
<span> <span>
РЕДАКТИРОВАТЬ РЕДАКТИРОВАТЬ

View file

@ -209,6 +209,7 @@ export class Editor {
const { path } = getUrlData(); const { path } = getUrlData();
pushPath(`/${path}`); pushPath(`/${path}`);
this.changeMode(MODES.NONE);
this.poly.poly.disableEdit(); this.poly.poly.disableEdit();
this.stickers.stopEditing(); this.stickers.stopEditing();
this.setEditing(false); this.setEditing(false);

View file

@ -1,10 +1,8 @@
.control-bar { .control-bar {
background: @bar_background; background: @bar_background;
border-radius: 3px; border-radius: 4px;
display: flex; display: flex;
box-shadow: @bar_shadow; box-shadow: @bar_shadow;
} }
.control-dist { .control-dist {
@ -103,6 +101,10 @@
background-size: 100% 100%; background-size: 100% 100%;
} }
&.single {
border-radius: 3px;
}
svg { svg {
fill: white; fill: white;
stroke: white; stroke: white;