From 6b577ab4c6bc414ccd7dc49b0775f21414edeaad Mon Sep 17 00:00:00 2001
From: florent <flavelle@neogeo.fr>
Date: Wed, 5 Jan 2022 10:23:32 +0100
Subject: [PATCH] redirect to project after saving symbology

---
 src/views/feature_type/Feature_type_symbology.vue | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/views/feature_type/Feature_type_symbology.vue b/src/views/feature_type/Feature_type_symbology.vue
index 619efa1d..5707cfc0 100644
--- a/src/views/feature_type/Feature_type_symbology.vue
+++ b/src/views/feature_type/Feature_type_symbology.vue
@@ -234,7 +234,15 @@ export default {
           this.GET_PROJECT_FEATURE_TYPES(this.$route.params.slug)
             .then(() => {
               this.loading = false;
-              this.success = 'La modification de la symbologie a été prise en compte.'
+              this.success = 'La modification de la symbologie a été prise en compte.';
+              setTimeout(() => {
+                this.$router.push({
+                  name: 'project_detail',
+                  params: {
+                    slug: this.$store.state.project_slug,
+                  },
+                })
+              }, 1500);
             })
             .catch((err) => {
               console.error(err);
-- 
GitLab