From b2206f0b7e469a4f1d344d607618161282f516a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 2 Aug 2021 20:18:31 +0200 Subject: [PATCH] Match the user settings for icon prefill on card for template (#870) --- webapp/src/mutator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/mutator.ts b/webapp/src/mutator.ts index af5400359..3feecd61c 100644 --- a/webapp/src/mutator.ts +++ b/webapp/src/mutator.ts @@ -10,6 +10,7 @@ import octoClient, {OctoClient} from './octoClient' import {OctoUtils} from './octoUtils' import undoManager from './undomanager' import {Utils} from './utils' +import {UserSettings} from './userSettings' // // The Mutator is used to make all changes to server state @@ -524,7 +525,7 @@ class Mutator { newCard.title = '' // 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() } }