Add navigation to start screen board list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -21,26 +21,41 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="board-list-row">
|
<router-link class="board-list-row"
|
||||||
|
:id="`board-${board.id}`"
|
||||||
|
:title="board.title" :to="routeTo" tag="div">
|
||||||
<div class="board-list-bullet-cell">
|
<div class="board-list-bullet-cell">
|
||||||
<div :style="{ 'background-color': board.bullet }" class="board-list-bullet" />
|
<div :style="{ 'background-color': board.bullet }" class="board-list-bullet" />
|
||||||
</div>
|
</div>
|
||||||
<div class="board-list-title-cell">{{ board.text }}</div>
|
<div class="board-list-title-cell">{{ board.text }}</div>
|
||||||
<div class="board-list-avatars-cell">
|
<div class="board-list-avatars-cell">
|
||||||
<img :src="`/avatar/${board.owner.uid}/32`" class="board-list-avatar">
|
<avatar :user="board.owner.uid" class="board-list-avatar" />
|
||||||
</div>
|
</div>
|
||||||
<div class="board-list-actions-cell" />
|
<div class="board-list-actions-cell" />
|
||||||
</div>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Avatar } from 'nextcloud-vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BoardItem',
|
name: 'BoardItem',
|
||||||
|
components: {
|
||||||
|
Avatar
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
board: {
|
board: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => { return {} }
|
default: () => { return {} }
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
routeTo: function() {
|
||||||
|
return {
|
||||||
|
name: 'board',
|
||||||
|
params: { id: this.board.id }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user