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={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>
|
||||||
РЕДАКТИРОВАТЬ
|
РЕДАКТИРОВАТЬ
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue