Board filter (#1507)

* filter field

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>

* build filters

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>

* Implement tag and assigned user filters

Signed-off-by: Julius Härtl <jus@bitgrid.net>

* small changes

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>

* new icon

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>

* Properly style filter popover

Signed-off-by: Julius Härtl <jus@bitgrid.net>

* Make sure that due is reactive

Signed-off-by: Julius Härtl <jus@bitgrid.net>

* filers are working now :)

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>

Co-authored-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Jakob
2020-02-06 17:47:01 +01:00
committed by GitHub
parent 0a003fe491
commit 2a94c53d4e
8 changed files with 327 additions and 21 deletions

View File

@@ -105,6 +105,7 @@ import axios from '@nextcloud/axios'
import CardBadges from './CardBadges'
import Color from '../../mixins/color'
import labelStyle from '../../mixins/labelStyle'
export default {
name: 'CardItem',
@@ -112,7 +113,7 @@ export default {
directives: {
ClickOutside,
},
mixins: [Color],
mixins: [Color, labelStyle],
props: {
id: {
type: Number,
@@ -150,14 +151,6 @@ export default {
menu() {
return []
},
labelStyle() {
return (label) => {
return {
backgroundColor: '#' + label.color,
color: this.textColor(label.color),
}
}
},
currentCard() {
return this.$route.params.cardId === this.id
},