forked from cybrespace/pinafore
12 lines
336 B
JavaScript
12 lines
336 B
JavaScript
import { updateVerifyCredentialsForInstance } from '../_actions/instances'
|
|
import { updateLists } from '../_actions/lists'
|
|
|
|
export function observers (store) {
|
|
store.observe('currentInstance', (currentInstance) => {
|
|
if (currentInstance) {
|
|
updateVerifyCredentialsForInstance(currentInstance)
|
|
updateLists()
|
|
}
|
|
})
|
|
}
|