Fix styling and rename to actual dashboard api

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-08-20 15:40:38 +02:00
parent 31a9162ff4
commit aa244108c8
14 changed files with 92 additions and 60 deletions

View File

@@ -21,11 +21,7 @@
-->
<template>
<<<<<<< HEAD
<div v-if="card" class="badges">
=======
<div class="badges" v-if="card">
>>>>>>> 37196bbf... Move duedate to separate component
<div v-if="card.commentsUnread > 0" class="icon icon-comment" />
<div v-if="card.description && checkListCount > 0" class="card-tasks icon icon-checkmark">
@@ -59,11 +55,7 @@ export default {
return (this.card.description.match(/^\s*([*+-]|(\d\.))\s+\[\s*(\s|x)\s*\](.*)$/gim) || []).length
},
checkListCheckedCount() {
<<<<<<< HEAD
return (this.card.description.match(/^\s*([*+-]|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length
=======
return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length
>>>>>>> 37196bbf... Move duedate to separate component
},
},
}

View File

@@ -21,7 +21,7 @@
-->
<template>
<div class="duedate" v-if="card">
<div v-if="card" class="duedate">
<transition name="zoom">
<div v-if="card.duedate" :class="dueIcon">
<span>{{ relativeDate }}</span>
@@ -65,7 +65,7 @@ export default {
dueDateTooltip() {
return moment(this.card.duedate).format('LLLL')
},
}
},
}
</script>