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

Merge branch 'redmine-issue/13762' into 'develop'

REDMINE_ISSUE-13762

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