(bugfixes)

This commit is contained in:
muerwre 2018-12-11 17:46:36 +07:00
parent 7cdc1f4f95
commit bce08b923f
5 changed files with 21 additions and 8 deletions

View file

@ -13,7 +13,7 @@ export const AppInfoDialog = () => (
версия{' '}
{(APP_INFO.VERSION || 1)}.
{(APP_INFO.CHANGELOG[APP_INFO.VERSION].length || 0)}.
{(APP_INFO.CHANGELOG[APP_INFO.VERSION][APP_INFO.CHANGELOG[APP_INFO.VERSION].length - 1].length - 1 || 0)}
{(APP_INFO.CHANGELOG[APP_INFO.VERSION][0].length - 1 || 0)}
</div>
<hr />
<div className="small app-info-list">

View file

@ -11,6 +11,7 @@ export const APP_INFO = {
'Импорт данных из старых версий карт', // [06.12.18]
'Диалог со списком карт пользователя', // [07.12.18]
'Мобильный интерфейс', // [07.12.18]
'Приложение для vk', // [11.12.18]
],
[
'Первый коммит', // [15.08.18]

View file

@ -56,7 +56,8 @@
}
#loader-bar {
background: linear-gradient(90deg, #845b9e, #54faff);
// background: linear-gradient(90deg, #845b9e, #54faff);
background: #7c5f9e;
width: 10%;
height: 100%;
border-radius: 4px;

View file

@ -1,11 +1,20 @@
/*
todo add ability to copy-paste address after saving
todo hide sticker dialog on sticker selection
todo separate mode for stricker selection
todo save progress
done TEST: set initialData after saving map, clear is-modified
done TEST: provider / logo triggers setChanged
done shot mechanism (100%)
done client-side shot mechanism
done croppr.js
done shot stickers
todo progress
done progress
done hotkeys via sagas
done better loader screen
done network errors handling on startup
todo hotkeys via sagas
todo map catalogue
todo public maps
todo map search
@ -21,9 +30,6 @@
todo check canvas support at startup
todo check osrm is up
todo better loader screen
todo network errors handling on startup
todo map preview on save
*/
import React from 'react';

View file

@ -220,6 +220,8 @@ function* setLogoSaga({ logo }) {
const { mode } = yield select(getState);
editor.logo = logo;
yield put(setChanged(true));
if (mode === MODES.LOGO) {
yield put(setMode(MODES.NONE));
}
@ -299,6 +301,7 @@ function* setSaveSuccessSaga({ address, title }) {
yield put(setTitle(title));
yield put(setAddress(address));
yield put(setChanged(false));
yield editor.owner = { id };
@ -381,11 +384,13 @@ function* cropAShotSaga(params) {
return yield put(hideRenderer());
}
function setProviderSaga({ provider }) {
function* setProviderSaga({ provider }) {
// editor.setProvider(provider);
editor.provider = provider;
editor.map.setProvider(provider);
yield put(setChanged(true));
return put(setMode(MODES.NONE));
}