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
|
|
@ -2,6 +2,7 @@ import { chunk, debounce, trim } from 'lodash'
|
|||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { ensureFinalFallback } from '../../i18n/languages.js'
|
||||
import Checkbox from '../checkbox/checkbox.vue'
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
|
|
@ -349,8 +350,8 @@ const EmojiPicker = {
|
|||
return this.showingStickers ? '' : this.activeGroup
|
||||
},
|
||||
stickersAvailable() {
|
||||
if (this.$store.state.instance.stickers) {
|
||||
return this.$store.state.instance.stickers.length > 0
|
||||
if (useInstanceStore().stickers) {
|
||||
return useInstanceStore().stickers.length > 0
|
||||
}
|
||||
return 0
|
||||
},
|
||||
|
|
@ -381,7 +382,7 @@ const EmojiPicker = {
|
|||
.concat(this.unicodeEmojiGroups)
|
||||
},
|
||||
stickerPickerEnabled() {
|
||||
return (this.$store.state.instance.stickers || []).length !== 0
|
||||
return (useInstanceStore().stickers || []).length !== 0
|
||||
},
|
||||
debouncedHandleKeywordChange() {
|
||||
return debounce(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue