Skip to content
Snippets Groups Projects
Commit 0b0c6c6f authored by Florent Lavelle's avatar Florent Lavelle
Browse files

wait for features after deletion

parent 91c022b9
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
v-if="((permissions && permissions.can_update_feature) || isFeatureCreator) && isOnline" v-if="((permissions && permissions.can_update_feature) || isFeatureCreator) && isOnline"
id="currentFeature-delete" id="currentFeature-delete"
class="ui button button-hover-red" class="ui button button-hover-red"
@click="isCanceling = true" @click="$emit('delete')"
> >
<i <i
class="inverted grey trash alternate icon" class="inverted grey trash alternate icon"
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
> >
<div class="row"> <div class="row">
<div class="sixteen wide column"> <div class="sixteen wide column">
<FeatureHeader /> <FeatureHeader
@delete="isCanceling = true"
/>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
...@@ -52,7 +54,7 @@ ...@@ -52,7 +54,7 @@
</div> </div>
<div <div
v-if="isCanceling" v-if="isCanceling"
class="ui dimmer modals page transition visible active" class="ui dimmer modals transition visible active"
style="display: flex !important" style="display: flex !important"
> >
<div <div
...@@ -234,9 +236,9 @@ export default { ...@@ -234,9 +236,9 @@ export default {
deleteFeature() { deleteFeature() {
this.$store this.$store
.dispatch('feature/DELETE_FEATURE', { feature_id: this.currentFeature.feature_id }) .dispatch('feature/DELETE_FEATURE', { feature_id: this.currentFeature.feature_id })
.then((response) => { .then(async (response) => {
if (response.status === 204) { if (response.status === 204) {
this.GET_PROJECT_FEATURES({ await this.GET_PROJECT_FEATURES({
project_slug: this.$route.params.slug project_slug: this.$route.params.slug
}); });
this.goBackToProject(); this.goBackToProject();
......
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