Skip to content

Commit cba4b51

Browse files
committed
Remove data-station from registry and setup routes
1 parent d175243 commit cba4b51

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

src/registry.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,6 @@
5353
"display": true,
5454
"package": "@opencdms"
5555
},
56-
{
57-
"component": "VListItem",
58-
"name": "data-station",
59-
"to": "/observations/station",
60-
"routeName": "data-station",
61-
"icon": "mdi-construction",
62-
"display": true,
63-
"package": "@opencdms"
64-
},
65-
{
66-
"component": "VListItem",
67-
"name": "data-station",
68-
"to": "/observations/station/",
69-
"routeName": "data-station",
70-
"icon": "mdi-construction",
71-
"display": true,
72-
"package": "@opencdms"
73-
},
7456
{
7557
"component": "VListItem",
7658
"name": "data-parameter",

src/router/routes.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,29 @@ const routes = [
209209
}
210210
]
211211
},
212+
213+
{
214+
path: '/data',
215+
name: 'data',
216+
children: [
217+
{
218+
path: 'station',
219+
name: 'data-station',
220+
component: () => import(/* webpackChunkName: "dashboard" */ '@/views/data-station.vue')
221+
}
222+
]
223+
},
224+
{
225+
path: '/data/station/:id(.*)',
226+
children: [
227+
{
228+
path: '',
229+
name: 'data-station-id',
230+
component: () => import(/* webpackChunkName: "dashboard" */ '@/views/data-station.vue'),
231+
}
232+
]
233+
},
234+
212235
{
213236
path: '/forms/observation-type/create',
214237
name: 'observation-type-form',

0 commit comments

Comments
 (0)