save: fixed dialog

backend: fixed provider storing
This commit is contained in:
muerwre 2018-12-11 15:30:22 +07:00
parent 17baf8ac15
commit 7cdc1f4f95
5 changed files with 17 additions and 12 deletions

View file

@ -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, {

View file

@ -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('/');