mirror of
https://github.com/mattermost/focalboard.git
synced 2025-04-17 11:36:22 +02:00
Set random icon on new cards
This commit is contained in:
parent
dbcbe286e7
commit
c12ecdf3d7
@ -242,6 +242,7 @@ class BoardComponent extends React.Component<Props, State> {
|
|||||||
const card = new Card()
|
const card = new Card()
|
||||||
card.parentId = boardTree.board.id
|
card.parentId = boardTree.board.id
|
||||||
card.properties = CardFilter.propertiesThatMeetFilterGroup(activeView.filter, board.cardProperties)
|
card.properties = CardFilter.propertiesThatMeetFilterGroup(activeView.filter, board.cardProperties)
|
||||||
|
card.icon = BlockIcons.shared.randomIcon()
|
||||||
if (boardTree.groupByProperty) {
|
if (boardTree.groupByProperty) {
|
||||||
card.properties[boardTree.groupByProperty.id] = groupByValue
|
card.properties[boardTree.groupByProperty.id] = groupByValue
|
||||||
}
|
}
|
||||||
|
@ -360,6 +360,7 @@ class TableComponent extends React.Component<Props, State> {
|
|||||||
|
|
||||||
const card = new Card()
|
const card = new Card()
|
||||||
card.parentId = boardTree.board.id
|
card.parentId = boardTree.board.id
|
||||||
|
card.icon = BlockIcons.shared.randomIcon()
|
||||||
await mutator.insertBlock(
|
await mutator.insertBlock(
|
||||||
card,
|
card,
|
||||||
"add card",
|
"add card",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user