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>
27 lines
466 B
JavaScript
27 lines
466 B
JavaScript
import { filter } from 'lodash'
|
|
|
|
import ReportCard from './report_card.vue'
|
|
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
|
|
|
const ReportsTab = {
|
|
data () {
|
|
return {
|
|
showClosed: false
|
|
}
|
|
},
|
|
components: {
|
|
Checkbox,
|
|
ReportCard
|
|
},
|
|
computed: {
|
|
reports () {
|
|
return this.$store.state.reports.reports
|
|
},
|
|
openReports () {
|
|
return filter(this.reports, { state: 'open' })
|
|
}
|
|
}
|
|
}
|
|
|
|
export default ReportsTab
|