2018-01-28 12:51:48 -08:00
|
|
|
import { updateVerifyCredentialsForInstance } from '../settings/instances/_actions/[instanceName]'
|
2018-02-08 09:15:25 -08:00
|
|
|
import { fetchLists } from '../community/_actions/community'
|
2018-01-28 12:51:48 -08:00
|
|
|
|
2018-01-28 13:09:39 -08:00
|
|
|
export function observers(store) {
|
2018-01-28 12:51:48 -08:00
|
|
|
store.observe('currentInstance', (currentInstance) => {
|
2018-01-28 15:44:33 -08:00
|
|
|
if (currentInstance) {
|
|
|
|
|
updateVerifyCredentialsForInstance(currentInstance)
|
2018-02-08 09:15:25 -08:00
|
|
|
fetchLists()
|
2018-01-28 15:44:33 -08:00
|
|
|
}
|
2018-01-28 12:51:48 -08:00
|
|
|
})
|
|
|
|
|
}
|