aboutsummaryrefslogtreecommitdiff
path: root/src/components/extra_buttons/extra_buttons.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-01-12 16:01:15 +0000
committerShpuld Shpludson <shp@cock.li>2021-01-12 16:01:15 +0000
commitf52bca04c9fe272daf81d4c4f839234ce6a80944 (patch)
tree610cd2803475c0ba4a50ca94bddf378b993ae77c /src/components/extra_buttons/extra_buttons.js
parent728726cf17b770f736ff3cba2896ee65e1d784cf (diff)
parent0ee0551a471266066050e059876ee24a4637c1ad (diff)
Merge branch 'feat/allow-reporting-status-directly' into 'develop'
Add report button to status ellipsis menu See merge request pleroma/pleroma-fe!1324
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
-rw-r--r--src/components/extra_buttons/extra_buttons.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index b5b29e8a..dd45b6b9 100644
--- a/src/components/extra_buttons/extra_buttons.js
+++ b/src/components/extra_buttons/extra_buttons.js
@@ -9,7 +9,8 @@ import {
faExternalLinkAlt
} from '@fortawesome/free-solid-svg-icons'
import {
- faBookmark as faBookmarkReg
+ faBookmark as faBookmarkReg,
+ faFlag
} from '@fortawesome/free-regular-svg-icons'
library.add(
@@ -19,7 +20,8 @@ library.add(
faEyeSlash,
faThumbtack,
faShareAlt,
- faExternalLinkAlt
+ faExternalLinkAlt,
+ faFlag
)
const ExtraButtons = {
@@ -66,6 +68,9 @@ const ExtraButtons = {
this.$store.dispatch('unbookmark', { id: this.status.id })
.then(() => this.$emit('onSuccess'))
.catch(err => this.$emit('onError', err.error.error))
+ },
+ reportStatus () {
+ this.$store.dispatch('openUserReportingModal', { userId: this.status.user.id, statusIds: [this.status.id] })
}
},
computed: {