mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
Match the user settings for icon prefill on card for template (#870)
This commit is contained in:
parent
be28b7dad5
commit
b2206f0b7e
@ -10,6 +10,7 @@ import octoClient, {OctoClient} from './octoClient'
|
|||||||
import {OctoUtils} from './octoUtils'
|
import {OctoUtils} from './octoUtils'
|
||||||
import undoManager from './undomanager'
|
import undoManager from './undomanager'
|
||||||
import {Utils} from './utils'
|
import {Utils} from './utils'
|
||||||
|
import {UserSettings} from './userSettings'
|
||||||
|
|
||||||
//
|
//
|
||||||
// The Mutator is used to make all changes to server state
|
// The Mutator is used to make all changes to server state
|
||||||
@ -524,7 +525,7 @@ class Mutator {
|
|||||||
newCard.title = ''
|
newCard.title = ''
|
||||||
|
|
||||||
// If the template doesn't specify an icon, initialize it to a random one
|
// If the template doesn't specify an icon, initialize it to a random one
|
||||||
if (!newCard.fields.icon) {
|
if (!newCard.fields.icon && UserSettings.prefillRandomIcons) {
|
||||||
newCard.fields.icon = BlockIcons.shared.randomIcon()
|
newCard.fields.icon = BlockIcons.shared.randomIcon()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user