You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
989 B

<template>
<project-list
:headers="headers"
:projects="projects"
:selected="selected"
:loading="loading"
@update="update"
/>
</template>
<script>
import { mapState, mapActions, mapMutations } from 'vuex'
import ProjectList from '@/components/organisms/ProjectList'
export default {
components: {
ProjectList
},
data() {
return {
headers: [
{
text: 'Name',
align: 'left',
value: 'name'
},
{
text: 'Description',
value: 'description'
},
{
text: 'Type',
value: 'project_type'
}
]
}
},
computed: {
...mapState('projects', ['projects', 'selected', 'loading'])
},
created() {
this.getProjectList()
},
methods: {
...mapActions('projects', ['getProjectList']),
...mapMutations('projects', ['updateSelected']),
update(selected) {
this.updateSelected(selected)
}
}
}
</script>