2018-02-11 21:46:57 +00:00
|
|
|
import { updateInstanceInfo, updateVerifyCredentialsForInstance } from '../_actions/instances'
|
|
|
|
import { updateLists } from '../_actions/lists'
|
|
|
|
|
|
|
|
export function instanceObservers (store) {
|
|
|
|
store.observe('currentInstance', (currentInstance) => {
|
|
|
|
if (!currentInstance) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
updateVerifyCredentialsForInstance(currentInstance)
|
|
|
|
updateInstanceInfo(currentInstance)
|
|
|
|
updateLists()
|
|
|
|
})
|
2018-02-11 22:11:03 +00:00
|
|
|
}
|