From d9107ff046d83e75a2132360a15bffd4f7f46937 Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Thu, 26 Oct 2023 14:09:16 -0700 Subject: [PATCH 1/5] Style PublishStep if passed an Error Log --- .../components/publishProcess/PublishStep.vue | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/web/src/components/publishProcess/PublishStep.vue b/web/src/components/publishProcess/PublishStep.vue index c4a61282e..ddbe1aa1e 100644 --- a/web/src/components/publishProcess/PublishStep.vue +++ b/web/src/components/publishProcess/PublishStep.vue @@ -5,8 +5,12 @@ :name="name" title="This is a step" :icon="icon" - :active-icon="icon" + :active-icon="hasError ? 'warning' : icon" + :active-color="hasError ? 'red' : undefined" :header-nav="true" + :error="hasError" + error-icon="warning" + error-color="red" >
- {{ log }} + + @@ -30,18 +39,33 @@ diff --git a/web/src/stores/color.ts b/web/src/stores/color.ts index 284b850af..fa0dfe370 100644 --- a/web/src/stores/color.ts +++ b/web/src/stores/color.ts @@ -18,6 +18,7 @@ export const useColorStore = defineStore('color', () => { textInput: { active: 'grey-1', }, + textError: 'red', outline: 'grey-6', icon: { fill: 'grey-4', @@ -90,6 +91,7 @@ export const useColorStore = defineStore('color', () => { textInput: { active: 'grey-10', }, + textError: 'red', outline: 'grey-10', icon: { fill: 'grey-8',