diff --git a/frontend/src/API.js b/frontend/src/API.js index c286fd4a..656e0cf9 100644 --- a/frontend/src/API.js +++ b/frontend/src/API.js @@ -148,6 +148,10 @@ class Api { return axios.post('api/services/' + service_id + '/incidents', data).then(response => (response.data)) } + async incident_edit(incident_id, data) { + return axios.patch('api/incidents/' + incident_id, data).then(response => (response.data)) + } + async incident_delete(incident) { return axios.delete('api/incidents/' + incident.id).then(response => (response.data)) } diff --git a/frontend/src/components/Dashboard/DowntimesList.vue b/frontend/src/components/Dashboard/DowntimesList.vue index 03b8f027..8a917ae7 100644 --- a/frontend/src/components/Dashboard/DowntimesList.vue +++ b/frontend/src/components/Dashboard/DowntimesList.vue @@ -53,8 +53,8 @@ :key="downtime.id" >