cleanup and fixes
This commit is contained in:
parent
c926ed7ac1
commit
7d19cc2d53
17 changed files with 80 additions and 57 deletions
|
|
@ -15,7 +15,7 @@ import { pollFormToMasto } from 'src/services/poll/poll.service.js'
|
|||
import { reject, map, uniqBy, debounce } from 'lodash'
|
||||
import suggestor from '../emoji_input/suggestor.js'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { mapState } from 'pinia'
|
||||
import { mapState, mapActions } from 'pinia'
|
||||
import Checkbox from '../checkbox/checkbox.vue'
|
||||
import Select from '../select/select.vue'
|
||||
import DraftCloser from 'src/components/draft_closer/draft_closer.vue'
|
||||
|
|
@ -32,7 +32,9 @@ import {
|
|||
faChevronLeft,
|
||||
faChevronRight
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
import { useInterfaceStore } from '../../stores/interface.js'
|
||||
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useMediaViewerStore } from 'src/stores/media_viewer.js'
|
||||
|
||||
library.add(
|
||||
faSmileBeam,
|
||||
|
|
@ -395,6 +397,7 @@ const PostStatusForm = {
|
|||
this.removeBeforeUnloadListener()
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useMediaViewerStore, ['increment']),
|
||||
statusChanged () {
|
||||
this.autoPreview()
|
||||
this.updateIdempotencyKey()
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@
|
|||
:nsfw="false"
|
||||
:attachments="newStatus.files"
|
||||
:descriptions="newStatus.mediaDescriptions"
|
||||
:set-media="() => $store.dispatch('setMedia', newStatus.files)"
|
||||
:set-media="() => setMedia()"
|
||||
:editable="true"
|
||||
:edit-attachment="editAttachment"
|
||||
:remove-attachment="removeMediaFile"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue