mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-09 11:10:05 +00:00
made it possible to create, update and delete tables, but also the select a table and navigate to the route
This commit is contained in:
parent
3b2eb13042
commit
497447edb8
45 changed files with 1226 additions and 150 deletions
web-frontend/modules/database
|
@ -2,13 +2,15 @@ import path from 'path'
|
|||
|
||||
export const databaseRoutes = [
|
||||
{
|
||||
name: 'application-database',
|
||||
path: '/database/:id',
|
||||
component: path.resolve(__dirname, 'pages/Database.vue'),
|
||||
name: 'database-table',
|
||||
path: '/database/:id/table/:tableId',
|
||||
component: path.resolve(__dirname, 'pages/Table.vue'),
|
||||
props(route) {
|
||||
const props = { ...route.params }
|
||||
props.id = parseInt(props.id)
|
||||
return props
|
||||
// @TODO figure out why the route param is empty on the server side.
|
||||
const p = { ...route.params }
|
||||
p.id = parseInt(p.id)
|
||||
p.tableId = parseInt(p.tableId)
|
||||
return p
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue