Explorar o código

redirecting to project detail page after creation

Dimitri Korsch %!s(int64=3) %!d(string=hai) anos
pai
achega
b7f2a56a13
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      frontend/src/views/project/Create.vue

+ 2 - 2
frontend/src/views/project/Create.vue

@@ -183,8 +183,8 @@
           return
 
         DataService.createProject(this.project).then(
-          () => {
-            this.$router.push({ name: 'projects' })
+          (project) => {
+            this.$router.push({ name: 'show_project', params: { id: project.id}})
         })
       }
     },