small cleanup

This commit is contained in:
Henry Jameson 2025-01-14 22:02:30 +02:00
commit 692ee06477
4 changed files with 256 additions and 271 deletions

View file

@ -1,4 +1,5 @@
import StatusBookmarkFolderMenu from 'src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue'
import EmojiPicker from 'src/components/emoji_picker/emoji_picker.vue'
import Popover from 'src/components/popover/popover.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
@ -67,11 +68,11 @@ export default {
],
components: {
StatusBookmarkFolderMenu,
EmojiPicker,
Popover
},
computed: {
buttonClass () {
if (!this.extra) console.log(this.button.name)
return [
this.button.name + '-button',
{
@ -93,5 +94,14 @@ export default {
}
]
}
},
methods: {
doActionWrap (button) {
if (button.name === 'emoji') {
this.$refs.picker.showPicker()
} else {
this.getComponent(button) === 'button' && this.doAction(button)
}
}
}
}