routes: slider changes

This commit is contained in:
muerwre 2018-12-13 17:48:15 +07:00
parent a3b04173d0
commit 3562c04dc8
6 changed files with 12 additions and 6 deletions

View file

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

View file

@ -16,9 +16,9 @@
done better loader screen done better loader screen
done network errors handling on startup done network errors handling on startup
todo map catalogue done map catalogue
todo public maps done public maps
todo map search done map search
todo map lazy loading todo map lazy loading
todo tooltips todo tooltips

View file

@ -228,7 +228,7 @@ export const INITIAL_STATE = {
starred: false, starred: false,
distance: [0, 10000], distance: [0, 10000],
author: '', author: '',
tab: 'mine', tab: '',
min: 0, min: 0,
max: 10000, max: 10000,
} }

View file

@ -461,7 +461,10 @@ function* openMapDialogSaga({ tab }) {
return yield put(setDialogActive(false)); return yield put(setDialogActive(false));
} }
// if (tab !== current) { // if tab wasnt changed just update data
yield put(searchSetTab(tab)); yield put(searchSetTab(tab));
// }
yield put(setDialog(DIALOGS.MAP_LIST)); yield put(setDialog(DIALOGS.MAP_LIST));
yield put(setDialogActive(true)); yield put(setDialogActive(true));

View file

@ -46,7 +46,8 @@
left: 0; left: 0;
height: 4px; height: 4px;
border-radius: @border-radius-base; border-radius: @border-radius-base;
background: linear-gradient(90deg, @green_secondary, @blue_secondary); background: linear-gradient(270deg, @red_secondary, @blue_secondary) fixed 20px 0;
background-size: 320px 100px;
} }
&-handle { &-handle {

View file

@ -44,4 +44,5 @@ export const getRouteList = ({
params: { params: {
title, distance, author, starred title, distance, author, starred
} }
}).then(result => (result && result.data && result.data.success && result.data)).catch(() => ([])); }).then(result => (result && result.data && result.data.success && result.data))
.catch(() => ({ list: [], min: 0, max: 0 }));