mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed logout
This commit is contained in:
parent
ad04704c3e
commit
24186c0447
4 changed files with 3 additions and 10 deletions
|
@ -99,7 +99,6 @@ export class App extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
setEditing = editing => {
|
setEditing = editing => {
|
||||||
console.log('editing', editing);
|
|
||||||
this.setState({ editing });
|
this.setState({ editing });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -165,14 +164,12 @@ export class App extends React.Component {
|
||||||
if (this.state.user.id === this.editor.owner) {
|
if (this.state.user.id === this.editor.owner) {
|
||||||
this.editor.owner = null;
|
this.editor.owner = null;
|
||||||
}
|
}
|
||||||
|
//
|
||||||
this.setState({
|
this.setState({
|
||||||
user: {
|
user: DEFAULT_USER,
|
||||||
...DEFAULT_USER,
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.storeUserData();
|
setTimeout(this.storeUserData, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -181,8 +181,6 @@ export class Editor {
|
||||||
this.setTitle(title || '');
|
this.setTitle(title || '');
|
||||||
this.setAddress(address || '');
|
this.setAddress(address || '');
|
||||||
|
|
||||||
console.log('setting address', address);
|
|
||||||
|
|
||||||
if (route) {
|
if (route) {
|
||||||
this.poly.setPoints(route);
|
this.poly.setPoints(route);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ export class Stickers {
|
||||||
// };
|
// };
|
||||||
|
|
||||||
createSticker = ({ latlng, sticker, angle = 2.2 }) => {
|
createSticker = ({ latlng, sticker, angle = 2.2 }) => {
|
||||||
console.log('creating', latlng, sticker, angle);
|
|
||||||
const marker = new Sticker({
|
const marker = new Sticker({
|
||||||
latlng,
|
latlng,
|
||||||
angle,
|
angle,
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const parseStickerAngle = ({ sticker, version }) => {
|
export const parseStickerAngle = ({ sticker, version }) => {
|
||||||
console.log('stick', sticker, version);
|
|
||||||
return sticker && version && parseInt(version, 10) === 2
|
return sticker && version && parseInt(version, 10) === 2
|
||||||
? parseFloat(sticker.angle)
|
? parseFloat(sticker.angle)
|
||||||
: parseFloat(sticker.ang - 3.14);
|
: parseFloat(sticker.ang - 3.14);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue