mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-24 08:22:29 +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()
|
||||
card.parentId = boardTree.board.id
|
||||
card.properties = CardFilter.propertiesThatMeetFilterGroup(activeView.filter, board.cardProperties)
|
||||
card.icon = BlockIcons.shared.randomIcon()
|
||||
if (boardTree.groupByProperty) {
|
||||
card.properties[boardTree.groupByProperty.id] = groupByValue
|
||||
}
|
||||
|
@ -360,6 +360,7 @@ class TableComponent extends React.Component<Props, State> {
|
||||
|
||||
const card = new Card()
|
||||
card.parentId = boardTree.board.id
|
||||
card.icon = BlockIcons.shared.randomIcon()
|
||||
await mutator.insertBlock(
|
||||
card,
|
||||
"add card",
|
||||
|
Loading…
Reference in New Issue
Block a user