mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
save: fixed dialog
backend: fixed provider storing
This commit is contained in:
parent
17baf8ac15
commit
7cdc1f4f95
5 changed files with 17 additions and 12 deletions
|
@ -20,7 +20,7 @@ export const getStoredMap = ({ name }) => axios.get(API.GET_MAP, {
|
|||
}).then(result => (result && result.data && result.data.success && result.data));
|
||||
|
||||
export const postMap = ({
|
||||
title, address, route, stickers, id, token, force, logo, distance,
|
||||
title, address, route, stickers, id, token, force, logo, distance, provider,
|
||||
}) => axios.post(API.POST_MAP, {
|
||||
title,
|
||||
address,
|
||||
|
@ -31,6 +31,7 @@ export const postMap = ({
|
|||
force,
|
||||
logo,
|
||||
distance,
|
||||
provider,
|
||||
}).then(result => (result && result.data && result.data));
|
||||
|
||||
export const checkIframeToken = ({ viewer_id, auth_key }) => axios.get(API.IFRAME_LOGIN_VK, {
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import { history } from '$redux/store';
|
||||
|
||||
export const getPath = () => (window.location && window.location.pathname);
|
||||
export const pushPath = url => {
|
||||
return history.push(url);
|
||||
};
|
||||
export const pushPath = url => history.push(url);
|
||||
export const replacePath = url => history.replace(url);
|
||||
|
||||
export const getUrlData = (url = getPath()) => {
|
||||
const [, path, mode] = url.split('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue