From 0580a54a1012ca99f625179a6676dc8bd712d739 Mon Sep 17 00:00:00 2001
From: sunshinesmilelk <41573506+sunshinesmilelk@users.noreply.github.com>
Date: Thu, 21 Nov 2024 23:19:15 +0800
Subject: [PATCH] feat(web): distinguish awel flow on the ui (#2149)
---
web/pages/construct/flow/index.tsx | 3 ++-
web/public/pictures/libro.png | Bin 0 -> 4296 bytes
2 files changed, 2 insertions(+), 1 deletion(-)
create mode 100644 web/public/pictures/libro.png
diff --git a/web/pages/construct/flow/index.tsx b/web/pages/construct/flow/index.tsx
index c42d05d1c..dd24022e3 100644
--- a/web/pages/construct/flow/index.tsx
+++ b/web/pages/construct/flow/index.tsx
@@ -182,7 +182,7 @@ function Flow() {
description={flow.description}
name={flow.name}
key={flow.uid}
- logo='/pictures/flow.png'
+ logo={`${flow.define_type === 'python' ? '/pictures/libro.png' : '/pictures/flow.png'}`}
onClick={() => {
if (flow.define_type === 'json') {
router.push('/construct/flow/canvas?id=' + flow.uid);
@@ -223,6 +223,7 @@ function Flow() {
Tags={
{flow.source}
+ {flow.define_type &&
{flow.define_type}}
{flow.editable ? 'Editable' : 'Can not Edit'}
{flow.state}
diff --git a/web/public/pictures/libro.png b/web/public/pictures/libro.png
new file mode 100644
index 0000000000000000000000000000000000000000..cc6b2addf045c5e872d643b4caeb9a7b1882d2f9
GIT binary patch
literal 4296
zcmcIoRbLbiuw5D!R!WdAiKUhF#bpQdqik=@6u(o6G;@
z-cN8J&YYP!GrxJ5rRK
zr$FB7y|T5sI)LNJ#|5B;+W|2DD|rId6952=EHnVd6Qli?%R>KO6`qChfBt`k&5hCF
z000rcvb>Cr7uvxOpHDi|w7*B2(}sgRFA|k9LNE!GBPz}84~l}z1I7$qTY(7~<;#oQ
zxLz52=q#=?sMqdg$IkD0)6WVH;m|J0StkvC#UYChB4-Z66q=VthwZbr`e+2ah+s9F
z|J{6fn2~mOsAhe+>_gXa+PosMvnlSML?r$VKq8H<1i)iJWB!8q{}T`}N{6SfMM5wq
zR1C_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