first pass of migration - states and obvious replacements
This commit is contained in:
parent
02f952047d
commit
24ce2dc0a5
66 changed files with 398 additions and 568 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useInterfaceStore } from 'src/stores/interface'
|
||||
|
||||
export default (store) => {
|
||||
store.subscribe((mutation, state) => {
|
||||
const vapidPublicKey = state.instance.vapidPublicKey
|
||||
const vapidPublicKey = useInstanceStore().vapidPublicKey
|
||||
const webPushNotification = state.config.webPushNotifications
|
||||
const permission = useInterfaceStore().notificationPermission === 'granted'
|
||||
const user = state.users.currentUser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue