mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Setting initial categories upon load; need to modify for timeline and related events
This commit is contained in:
@@ -107,6 +107,7 @@ export function fetchDomain () {
|
||||
throw new Error('Some URLs returned negative. If you are in development, check the server is running')
|
||||
}
|
||||
dispatch(toggleFetchingDomain())
|
||||
dispatch(setInitialCategories(result.associations))
|
||||
return result
|
||||
})
|
||||
.catch(err => {
|
||||
@@ -212,6 +213,14 @@ export function setNotLoading () {
|
||||
}
|
||||
}
|
||||
|
||||
export const SET_INITIAL_CATEGORIES = 'SET_INITIAL_CATEGORIES'
|
||||
export function setInitialCategories (values) {
|
||||
return {
|
||||
type: SET_INITIAL_CATEGORIES,
|
||||
values
|
||||
}
|
||||
}
|
||||
|
||||
export const UPDATE_TIMERANGE = 'UPDATE_TIMERANGE'
|
||||
export function updateTimeRange (timerange) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user