Skip to content
Snippets Groups Projects

get events for currrent feature and adapt template

Merged Timothee P requested to merge evol/redmine-ticket-11442-comments into develop
2 files
+ 29
20
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -4,6 +4,20 @@ import store from '../store'
@@ -4,6 +4,20 @@ import store from '../store'
const baseUrl = store.state.configuration.VUE_APP_DJANGO_API_BASE;
const baseUrl = store.state.configuration.VUE_APP_DJANGO_API_BASE;
const featureAPI = {
const featureAPI = {
 
async getFeatureEvents(featureId) {
 
const response = await axios.get(
 
`${baseUrl}features/${featureId}/events/`
 
);
 
if (
 
response.status === 200 &&
 
response.data
 
) {
 
return response.data;
 
} else {
 
return null;
 
}
 
},
 
async getFeatureAttachments(featureId) {
async getFeatureAttachments(featureId) {
const response = await axios.get(
const response = await axios.get(
`${baseUrl}features/${featureId}/attachments/`
`${baseUrl}features/${featureId}/attachments/`
Loading