Move editStatus module to store
This commit is contained in:
parent
27e36dbc2e
commit
3430604dda
5 changed files with 24 additions and 32 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
faBookmark as faBookmarkReg,
|
||||
faFlag
|
||||
} from '@fortawesome/free-regular-svg-icons'
|
||||
import { useEditStatusStore } from '../../stores/editStatus'
|
||||
|
||||
library.add(
|
||||
faEllipsisH,
|
||||
|
|
@ -107,7 +108,7 @@ const ExtraButtons = {
|
|||
},
|
||||
editStatus () {
|
||||
this.$store.dispatch('fetchStatusSource', { id: this.status.id })
|
||||
.then(data => this.$store.dispatch('openEditStatusModal', {
|
||||
.then(data => useEditStatusStore().openEditStatusModal({
|
||||
statusId: this.status.id,
|
||||
subject: data.spoiler_text,
|
||||
statusText: data.text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue