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="control-bar">
<button className="success" onClick={this.startEditing}>
<button className="success single" onClick={this.startEditing}>
<Icon icon="icon-router" />
<span>
РЕДАКТИРОВАТЬ

View file

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

View file

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