mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
visgraph: adding node whitelist
This commit is contained in:
@@ -13,6 +13,7 @@ const store = createStore({
|
||||
courses: [],
|
||||
relationships: [],
|
||||
links: [],
|
||||
whitelistIds: [],
|
||||
personLoadedIds: [],
|
||||
householdLoadingIds: [],
|
||||
courseLoadedIds: [],
|
||||
@@ -44,6 +45,9 @@ const store = createStore({
|
||||
})
|
||||
return edges
|
||||
},
|
||||
isInWhitelist: (state) => (person_id) => {
|
||||
return state.whitelistIds.includes(person_id)
|
||||
},
|
||||
isHouseholdLoading: (state) => (household_id) => {
|
||||
return state.householdLoadingIds.includes(household_id)
|
||||
},
|
||||
@@ -151,6 +155,9 @@ const store = createStore({
|
||||
},
|
||||
|
||||
//// id markers
|
||||
markInWhitelist(state, person) {
|
||||
state.whitelistIds.push(person.id)
|
||||
},
|
||||
markPersonLoaded(state, id) {
|
||||
state.personLoadedIds.push(id)
|
||||
},
|
||||
|
Reference in New Issue
Block a user