show only 6 cards

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2021-06-07 10:35:16 +02:00
parent 1d12ab93f5
commit 7364f5dfe6
4 changed files with 15 additions and 9 deletions

View File

@@ -28,11 +28,11 @@
:members="members"
name-key="uid"
:tab-select="true">
<template v-slot:item="s">
<template #item="s">
<Avatar class="atwho-li--avatar" :user="s.item.uid" :size="24" />
<span class="atwho-li--name" v-text="s.item.displayname" />
</template>
<template v-slot:embeddedItem="scope">
<template #embeddedItem="scope">
<span>
<UserBubble v-if="scope.current.uid"
:data-mention-id="scope.current.uid"

View File

@@ -149,6 +149,9 @@ export default {
directives: {
ClickOutside,
},
inject: [
'boardApi',
],
props: {
board: {
type: Object,
@@ -312,9 +315,6 @@ export default {
this.updateDueSetting = null
},
},
inject: [
'boardApi',
],
}
</script>

View File

@@ -30,7 +30,7 @@
:loading="loading"
@hide="() => {}"
@markDone="() => {}">
<template v-slot:default="{ item }">
<template #default="{ item }">
<a :key="item.id"
:href="cardLink(item)"
target="_blank"
@@ -84,11 +84,17 @@ export default {
'assignedCardsDashboard',
]),
cards() {
const list = [
/* const list = [
...this.assignedCardsDashboard,
].filter((card) => {
return card.duedate !== null
})
}) */
const list = this.assignedCardsDashboard.slice(0, 6)
.filter((card) => {
return card.duedate !== null
})
list.sort((a, b) => {
return (new Date(a.duedate)).getTime() - (new Date(b.duedate)).getTime()
})

View File

@@ -11,7 +11,7 @@ const config = {
},
output: {
filename: '[name].js',
jsonpFunction: 'webpackJsonpOCADeck',
// jsonpFunction: 'webpackJsonpOCADeck',
chunkFilename: '[name].js?v=[contenthash]',
},
resolve: {