Browse Source

Enable communication with label api

pull/341/head
Hironsan 5 years ago
parent
commit
4338214600
3 changed files with 7 additions and 3 deletions
  1. 4
      frontend/components/containers/LabelList.vue
  2. 2
      frontend/pages/projects/_id/labels/index.vue
  3. 4
      frontend/store/labels.js

4
frontend/components/containers/LabelList.vue

@ -97,7 +97,9 @@ export default {
},
created() {
this.getLabelList()
this.getLabelList({
projectId: this.$route.params.id
})
},
methods: {

2
frontend/pages/projects/_id/labels/index.vue

@ -16,6 +16,8 @@ import LabelDeletionButton from '@/components/containers/LabelDeletionButton'
export default {
layout: 'project',
middleware: 'check-auth',
components: {
LabelList,
LabelCreationButton,

4
frontend/store/labels.js

@ -56,9 +56,9 @@ export const mutations = {
}
export const actions = {
getLabelList({ commit }, config) {
getLabelList({ commit }, payload) {
commit('setLoading', true)
return LabelService.getLabelList()
return LabelService.getLabelList(payload.projectId)
.then((response) => {
commit('setLabelList', response)
})

Loading…
Cancel
Save