Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
93101b4d
Commit
93101b4d
authored
Mar 13, 2024
by
JzoNg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add running state for step run
parent
d8222a15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
index.tsx
...workflow/nodes/_base/components/before-run-form/index.tsx
+4
-1
result-panel.tsx
web/app/components/workflow/run/result-panel.tsx
+3
-3
No files found.
web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx
View file @
93101b4d
...
@@ -10,6 +10,7 @@ import { StopCircle } from '@/app/components/base/icons/src/vender/solid/mediaAn
...
@@ -10,6 +10,7 @@ import { StopCircle } from '@/app/components/base/icons/src/vender/solid/mediaAn
import
{
Loading02
,
XClose
}
from
'@/app/components/base/icons/src/vender/line/general'
import
{
Loading02
,
XClose
}
from
'@/app/components/base/icons/src/vender/line/general'
import
Split
from
'@/app/components/workflow/nodes/_base/components/split'
import
Split
from
'@/app/components/workflow/nodes/_base/components/split'
import
{
NodeRunningStatus
}
from
'@/app/components/workflow/types'
import
{
NodeRunningStatus
}
from
'@/app/components/workflow/types'
import
ResultPanel
from
'@/app/components/workflow/run/result-panel'
const
i18nPrefix
=
'workflow.singleRun'
const
i18nPrefix
=
'workflow.singleRun'
...
@@ -77,7 +78,9 @@ const BeforeRunForm: FC<BeforeRunFormProps> = ({
...
@@ -77,7 +78,9 @@ const BeforeRunForm: FC<BeforeRunFormProps> = ({
<
div
>
{
t
(
`${i18nPrefix}.${isRunning ? 'running' : 'startRun'}`
)
}
</
div
>
<
div
>
{
t
(
`${i18nPrefix}.${isRunning ? 'running' : 'startRun'}`
)
}
</
div
>
</
Button
>
</
Button
>
</
div
>
</
div
>
{
isRunning
&&
(
<
ResultPanel
status=
'running'
showSteps=
{
false
}
/>
)
}
{
isFinished
&&
(
{
isFinished
&&
(
<>
<>
{
result
}
{
result
}
...
...
web/app/components/workflow/run/result-panel.tsx
View file @
93101b4d
...
@@ -14,9 +14,9 @@ type ResultPanelProps = {
...
@@ -14,9 +14,9 @@ type ResultPanelProps = {
elapsed_time
?:
number
elapsed_time
?:
number
total_tokens
?:
number
total_tokens
?:
number
created_at
?:
number
created_at
?:
number
created_by
:
string
created_by
?
:
string
finished_at
?:
number
finished_at
?:
number
steps
:
number
steps
?
:
number
showSteps
?:
boolean
showSteps
?:
boolean
}
}
...
@@ -60,7 +60,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
...
@@ -60,7 +60,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
onChange=
{
()
=>
{}
}
onChange=
{
()
=>
{}
}
/>
/>
)
}
)
}
{
outputs
&&
(
{
(
outputs
||
status
===
'running'
)
&&
(
<
CodeEditor
<
CodeEditor
readOnly
readOnly
title=
{
<
div
>
OUTPUT
</
div
>
}
title=
{
<
div
>
OUTPUT
</
div
>
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment