Move postStatus module to store

This commit is contained in:
Sean King 2023-04-05 13:01:37 -06:00
commit 27e36dbc2e
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
6 changed files with 25 additions and 32 deletions

View file

@ -3,6 +3,7 @@ import { library } from '@fortawesome/fontawesome-svg-core'
import {
faPen
} from '@fortawesome/free-solid-svg-icons'
import { usePostStatusStore } from '../../stores/postStatus'
library.add(
faPen
@ -71,7 +72,7 @@ const MobilePostStatusButton = {
window.removeEventListener('scroll', this.handleScrollEnd)
},
openPostForm () {
this.$store.dispatch('openPostStatusModal')
usePostStatusStore().openPostStatusModal()
},
handleOSK () {
// This is a big hack: we're guessing from changed window sizes if the