pleroma-fe/src/components/reply_button/reply_button.js
HJ 513b81a23b Merge branch 'from/develop/tusooa/remote-xact' into 'develop'
Remote interaction with posts: frontend part

See merge request pleroma/pleroma-fe!1419
2022-11-21 19:34:19 +00:00

28 lines
515 B
JavaScript

import { library } from '@fortawesome/fontawesome-svg-core'
import {
faReply,
faPlus,
faTimes
} from '@fortawesome/free-solid-svg-icons'
library.add(
faReply,
faPlus,
faTimes
)
const ReplyButton = {
name: 'ReplyButton',
props: ['status', 'replying'],
computed: {
loggedIn () {
return !!this.$store.state.users.currentUser
},
remoteInteractionLink () {
return this.$store.getters.remoteInteractionLink({ statusId: this.status.id })
}
}
}
export default ReplyButton