From 80776a844d5ef5f06f8af41dc2572335df7dd618 Mon Sep 17 00:00:00 2001 From: Ming-Hay <157658916+minghay@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:17:10 -0700 Subject: [PATCH] fix: Default parameter icon (#1069) --- .../pipeline/parameters/styles.scss | 4 ++ .../pipeline/parameters/template.hbs | 7 +++ app/components/pipeline/styles.scss | 2 + .../pipeline/parameters/component-test.js | 54 +++++++++++++++++-- 4 files changed, 64 insertions(+), 3 deletions(-) diff --git a/app/components/pipeline/parameters/styles.scss b/app/components/pipeline/parameters/styles.scss index d6941f70a..53938ce02 100644 --- a/app/components/pipeline/parameters/styles.scss +++ b/app/components/pipeline/parameters/styles.scss @@ -43,6 +43,10 @@ margin-top: auto; margin-bottom: auto; padding-left: 0.25rem; + + &.fa-exclamation-triangle { + color: colors.$sd-warning; + } } } diff --git a/app/components/pipeline/parameters/template.hbs b/app/components/pipeline/parameters/template.hbs index 27012ba29..3f98d9214 100644 --- a/app/components/pipeline/parameters/template.hbs +++ b/app/components/pipeline/parameters/template.hbs @@ -17,6 +17,13 @@ {{#if parameter.description}} {{/if}} + {{#if (and + (not (is-array parameter.defaultValues)) + (not (eq parameter.value parameter.defaultValues)) + ) + }} + + {{/if}} {{#if (is-array parameter.defaultValues)}}