2018-02-09 02:51:48 +01:00
|
|
|
import { updateVerifyCredentialsForInstance } from '../_actions/instances'
|
|
|
|
import { updateLists } from '../_actions/lists'
|
2018-01-28 21:51:48 +01:00
|
|
|
|
2018-02-09 07:29:29 +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-09 02:51:48 +01:00
|
|
|
updateLists()
|
2018-01-29 00:44:33 +01:00
|
|
|
}
|
2018-01-28 21:51:48 +01:00
|
|
|
})
|
2018-02-09 07:29:29 +01:00
|
|
|
}
|