mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
added changeMode on stopEditing
This commit is contained in:
parent
5c892c7961
commit
9e53969d53
3 changed files with 7 additions and 4 deletions
|
@ -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>
|
||||
РЕДАКТИРОВАТЬ
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue