Skip to content

Commit bcc5db6

Browse files
committed
STYLES
1 parent c699900 commit bcc5db6

File tree

3 files changed

+175
-154
lines changed

3 files changed

+175
-154
lines changed

lib/components/Output/Output.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ function CollapsibleSection({ title, tooltip, defaultOpen = true, isExecuting =
445445
) : (
446446
<span className="output__collapsible-title">{ title }</span>
447447
) }
448-
{ isExecuting && <span className="output__collapsible-pulse-dot" /> }
449448
{
450449
isOpen ? <ChevronDown size={ 16 } className="output__chevron output__chevron--open" />
451450
: <ChevronRight size={ 16 } className="output__chevron" />

lib/components/TaskTesting/TaskTesting.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import {
1010
import {
1111
CheckmarkFilled,
1212
Cursor_1 as Cursor,
13+
Erase,
1314
ErrorFilled,
15+
Hourglass,
1416
PlayFilledAlt,
15-
Reset,
16-
StopFilledAlt,
17-
Settings
17+
Settings,
18+
StopFilledAlt
1819
} from '@carbon/icons-react';
1920

2021
import classNames from 'classnames';
@@ -597,7 +598,7 @@ export default function TaskTesting({
597598
kind="ghost"
598599
size="sm"
599600
hasIconOnly
600-
renderIcon={ Reset }
601+
renderIcon={ Erase }
601602
iconDescription="Clear output"
602603
onClick={ handleResetOutput }
603604
/>
@@ -675,6 +676,10 @@ function getHeaderStateClass({ isTaskExecuting, isConnectionConfigured, output }
675676
}
676677

677678
function HeaderStatusIcon({ isTaskExecuting, isConnectionConfigured, output }) {
679+
if (isTaskExecuting) {
680+
return <Hourglass />;
681+
}
682+
678683
if (output?.error || output?.incident || !isConnectionConfigured) {
679684
return <ErrorFilled size={ 16 } className="task-testing__status-icon--error" />;
680685
}
@@ -699,6 +704,10 @@ function HeaderStatusText({ isTaskExecuting, isConnectionConfigured, taskExecuti
699704
return 'Connection error';
700705
}
701706

707+
if (isTaskExecuting) {
708+
return 'Executing...';
709+
}
710+
702711
if (output) {
703712
if (output.error) {
704713
return output.error.message ? `Error: ${output.error.message}` : 'Error';

0 commit comments

Comments
 (0)