Skip to content
Snippets Groups Projects
Commit aa2d0478 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

add query to feature edition route and at turn back

parent f9360ef9
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
slug_signal: slugSignal, slug_signal: slugSignal,
slug_type_signal: $route.params.slug_type_signal || featureType.slug, slug_type_signal: $route.params.slug_type_signal || featureType.slug,
}, },
query: $route.query
}" }"
class="ui button button-hover-orange tiny-margin" class="ui button button-hover-orange tiny-margin"
data-tooltip="Éditer le signalement" data-tooltip="Éditer le signalement"
......
...@@ -193,6 +193,7 @@ const feature = { ...@@ -193,6 +193,7 @@ const feature = {
slug_signal: featureId, slug_signal: featureId,
message: routeName === 'editer-signalement' ? 'Le signalement a été mis à jour' : 'Le signalement a été crée' message: routeName === 'editer-signalement' ? 'Le signalement a été mis à jour' : 'Le signalement a été crée'
}, },
query: router.history.current.query,
}); });
dispatch('projects/GET_ALL_PROJECTS', null, { root:true }); //* & refresh project list dispatch('projects/GET_ALL_PROJECTS', null, { root:true }); //* & refresh project list
}); });
......
...@@ -809,7 +809,6 @@ export default { ...@@ -809,7 +809,6 @@ export default {
this.updateStore(); this.updateStore();
} }
this.sendingFeature = true; this.sendingFeature = true;
console.log(this.sendingFeature);
this.$store.dispatch('feature/SEND_FEATURE', this.currentRouteName) this.$store.dispatch('feature/SEND_FEATURE', this.currentRouteName)
.then(() => this.sendingFeature = false); .then(() => this.sendingFeature = false);
} }
......
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