forked from AkkomaGang/akkoma-fe
15bac1e401
implements part of #178, other parts will come later Co-authored-by: Sol Fisher Romanoff <sol@solfisher.com> Reviewed-on: AkkomaGang/pleroma-fe#186 Co-authored-by: sfr <sol@solfisher.com> Co-committed-by: sfr <sol@solfisher.com>
38 lines
798 B
JavaScript
38 lines
798 B
JavaScript
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
|
import Timeago from 'src/components/timeago/timeago.vue'
|
|
import UserAvatar from 'src/components/user_avatar/user_avatar.vue'
|
|
|
|
const ReportNote = {
|
|
data () {
|
|
return {
|
|
showingDeleteDialog: false
|
|
}
|
|
},
|
|
props: [
|
|
'content',
|
|
'created_at',
|
|
'user',
|
|
'report_id',
|
|
'id'
|
|
],
|
|
components: {
|
|
ConfirmModal,
|
|
Timeago,
|
|
UserAvatar
|
|
},
|
|
methods: {
|
|
deleteNoteFromReport () {
|
|
this.$store.dispatch('deleteNoteFromReport', { id: this.report_id, note: this.id })
|
|
this.showingDeleteDialog = false
|
|
},
|
|
showDeleteDialog () {
|
|
this.showingDeleteDialog = true
|
|
},
|
|
hideDeleteDialog () {
|
|
this.showingDeleteDialog = false
|
|
}
|
|
}
|
|
}
|
|
|
|
export default ReportNote
|