From 9076ea05e3449c52ea158dae37883f6227374c36 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 3 Aug 2023 14:13:18 +0200 Subject: [PATCH] Fix formattable-input.component.ts --- .../shared/actions/formattable-input.component.ts | 12 ++++++------ frontend/src/app/theme/_vars.scss | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/features/rules/shared/actions/formattable-input.component.ts b/frontend/src/app/features/rules/shared/actions/formattable-input.component.ts index 5eeb81a0ec..e8bd22d0bc 100644 --- a/frontend/src/app/features/rules/shared/actions/formattable-input.component.ts +++ b/frontend/src/app/features/rules/shared/actions/formattable-input.component.ts @@ -121,12 +121,12 @@ function getValueFromMode(value: string | undefined, mode: TemplateMode) { value = value.trim(); switch (mode) { - case 'Liquid': { - return `Liquid(${value})`; - } - case 'Script': { - `Script(${value})`; - } + case 'Liquid': + value = `Liquid(${value})`; + break; + case 'Script': + value = `Script(${value})`; + break; } return value; diff --git a/frontend/src/app/theme/_vars.scss b/frontend/src/app/theme/_vars.scss index a0e539205d..5553a39b19 100644 --- a/frontend/src/app/theme/_vars.scss +++ b/frontend/src/app/theme/_vars.scss @@ -10,7 +10,7 @@ $color-border-darker: darken($color-border, 15%); $color-title: #000; $color-text: #373a3c; -$color-text-decent: #545863; +$color-text-decent: #41444C; $color-tooltip: #1a2129; $color-code-background: #f5f7f9;