biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -6,32 +6,38 @@ import RichContent from 'src/components/rich_content/rich_content.jsx'
|
|||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
|
||||
const Report = {
|
||||
props: [
|
||||
'reportId'
|
||||
],
|
||||
props: ['reportId'],
|
||||
components: {
|
||||
Select,
|
||||
StatusContent,
|
||||
Timeago,
|
||||
RichContent
|
||||
RichContent,
|
||||
},
|
||||
computed: {
|
||||
report () {
|
||||
report() {
|
||||
return useReportsStore().reports[this.reportId] || {}
|
||||
},
|
||||
state: {
|
||||
get: function () { return this.report.state },
|
||||
set: function (val) { this.setReportState(val) }
|
||||
}
|
||||
get: function () {
|
||||
return this.report.state
|
||||
},
|
||||
set: function (val) {
|
||||
this.setReportState(val)
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
generateUserProfileLink (user) {
|
||||
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
|
||||
generateUserProfileLink(user) {
|
||||
return generateProfileLink(
|
||||
user.id,
|
||||
user.screen_name,
|
||||
this.$store.state.instance.restrictedNicknames,
|
||||
)
|
||||
},
|
||||
setReportState (state) {
|
||||
setReportState(state) {
|
||||
return useReportsStore().setReportState({ id: this.report.id, state })
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default Report
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue