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