Skip to content
Snippets Groups Projects
Commit 86c5a21d authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'REDMINE-ISSUES/12566' into 'develop'

parents f50eba40 66c93812
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,8 @@
<script>
import { mapState } from "vuex";
export default {
data() {
return {
......@@ -90,6 +92,9 @@ export default {
}
},
},
computed: {
...mapState("feature", ["features"]),
},
methods: {
fetchImports() {
......@@ -97,6 +102,9 @@ export default {
"feature_type/GET_IMPORTS",
this.$route.params.feature_type_slug
);
this.$store.dispatch('feature/GET_PROJECT_FEATURES', {
project_slug: this.$route.params.slug
})
//* show that the action was triggered, could be improved with animation (doesn't work)
this.ready = false;
},
......
......@@ -355,9 +355,12 @@ export default {
if (!this.project) {
this.$store.dispatch("GET_PROJECT_INFO", this.$route.params.slug);
}
this.$store.dispatch('feature/GET_PROJECT_FEATURES', {
project_slug: this.$route.params.slug
})
this.$store.commit(
"feature_type/SET_CURRENT_FEATURE_TYPE_SLUG",
this.$route.params.slug_type_signal
this.$route.params.feature_type_slug
);
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment