fix openEditStatusStore
This commit is contained in:
parent
e0b9940535
commit
7aee12bcd4
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import { useEditStatusStore } from 'src/stores/editStatus.js'
|
||||||
const PRIVATE_SCOPES = new Set(['private', 'direct'])
|
const PRIVATE_SCOPES = new Set(['private', 'direct'])
|
||||||
const PUBLIC_SCOPES = new Set(['public', 'unlisted'])
|
const PUBLIC_SCOPES = new Set(['public', 'unlisted'])
|
||||||
export const BUTTONS = [{
|
export const BUTTONS = [{
|
||||||
|
@ -151,7 +152,7 @@ export const BUTTONS = [{
|
||||||
},
|
},
|
||||||
action ({ dispatch, status }) {
|
action ({ dispatch, status }) {
|
||||||
return dispatch('fetchStatusSource', { id: status.id })
|
return dispatch('fetchStatusSource', { id: status.id })
|
||||||
.then(data => dispatch('openEditStatusModal', {
|
.then(data => useEditStatusStore().openEditStatusModal({
|
||||||
statusId: status.id,
|
statusId: status.id,
|
||||||
subject: data.spoiler_text,
|
subject: data.spoiler_text,
|
||||||
statusText: data.text,
|
statusText: data.text,
|
||||||
|
|
Loading…
Add table
Reference in a new issue