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

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