Adds the board route

This commit is contained in:
Michael Weimann
2018-12-04 00:14:44 +01:00
parent 5ea20e1268
commit a4dbb31b8c
2 changed files with 16 additions and 4 deletions

View File

@@ -21,12 +21,18 @@
-->
<template>
<div />
<div>Board goes here, id: {{ id }}</div>
</template>
<script>
export default {
name: 'Board'
name: 'Board',
props: {
id: {
type: Number,
default: null
}
}
}
</script>

View File

@@ -24,8 +24,8 @@ import Vue from 'vue'
import Router from 'vue-router'
import { generateUrl } from 'nextcloud-server/dist/router'
import { BOARD_FILTERS } from './store/modules/nav'
const Boards = () => import('./components/Boards')
import Boards from './components/Boards'
import Board from './components/Board'
Vue.use(Router)
@@ -61,6 +61,12 @@ export default new Router({
props: {
navFilter: BOARD_FILTERS.SHARED
}
},
{
path: '/boards/:id',
name: 'board',
component: Board,
props: true
}
]
})