Skip to content

Commit

Permalink
♻️ : change the route for stack creation
Browse files Browse the repository at this point in the history
so we do not need a client-side generated UUID
  • Loading branch information
juwit committed Apr 10, 2020
1 parent 0095823 commit 12fdcff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
3 changes: 0 additions & 3 deletions src/main/client/app/pages/modules/modules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
import { AppCliBadge } from '@/shared/components';
import { v4 as uuidv4 } from 'uuid';
export default {
name: 'AppModules',
Expand All @@ -92,7 +90,6 @@
this.$router.push({
name: 'stack_creation',
params: {
stackId: uuidv4(),
moduleId,
},
});
Expand Down
5 changes: 0 additions & 5 deletions src/main/client/app/pages/stacks/stack-creation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@
type: String,
required: true,
},
stackId: {
type: String,
required: true,
},
},
data() {
Expand All @@ -131,7 +127,6 @@
this.module = await getModule(this.moduleId);
this.stack = {};
this.stack.id = this.stackId;
this.stack.moduleId = this.module.id;
this.stack.variableValues = {};
this.stack.variables = this.module.variables.map((variable) => ({
Expand Down
22 changes: 11 additions & 11 deletions src/main/client/app/pages/stacks/stacks-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ const stacksRoutes = [
title: 'Gaia - Stacks',
},
},
{
path: '/stacks/new',
name: 'stack_creation',
component: () => import(/* webpackChunkName: "chunk-stacks" */ '@/pages/stacks/stack-creation.vue'),
props: true,
meta: {
authorities: ['ROLE_USER'],
breadcrumb: [{ text: 'Stacks', to: { name: 'stacks' } }, { text: 'Stack creation' }],
title: 'Gaia - Stack creation',
},
},
{
path: '/stacks/:stackId',
component: () => import(/* webpackChunkName: "chunk-stacks" */ '@/pages/stacks/stack.vue'),
meta: {
authorities: ['ROLE_USER'],
},
children: [
{
path: 'add',
name: 'stack_creation',
component: () => import(/* webpackChunkName: "chunk-stacks" */ '@/pages/stacks/stack-creation.vue'),
props: true,
meta: {
authorities: ['ROLE_USER'],
breadcrumb: [{ text: 'Stacks', to: { name: 'stacks' } }, { text: 'Stack creation' }],
title: 'Gaia - Stack creation',
},
},
{
path: 'edit',
name: 'stack_edition',
Expand Down

0 comments on commit 12fdcff

Please sign in to comment.