Skip to content

Commit 40ab8d0

Browse files
authored
feat: Introduce RouterViewPlaceholder component and assign it to the database-table-row route. (baserow#4751)
1 parent 80ab245 commit 40ab8d0

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div></div>
3+
</template>
4+
5+
<script>
6+
/**
7+
* This component is used as a placeholder for routes that do not have a component
8+
* but need one to satisfy the router. It renders nothing, allowing the parent route
9+
* or router-view to handle the structure. This is particularly useful for nested
10+
* routes where a segment is logical but has no specific UI representation itself.
11+
*/
12+
export default {
13+
name: 'RouterViewPlaceholder',
14+
}
15+
</script>

web-frontend/modules/database/routes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export const routes = [
1414
{
1515
path: 'row/:rowId',
1616
name: 'database-table-row',
17+
file: path.resolve(
18+
__dirname,
19+
'../core/components/RouterViewPlaceholder.vue'
20+
),
1721
},
1822
{
1923
path: 'webhooks',

0 commit comments

Comments
 (0)