Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-deploy-ui
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccce
dev
ce-deploy-ui
Commits
a2199e3f
Commit
a2199e3f
authored
6 months ago
by
Johanna Szepanski
Browse files
Options
Downloads
Patches
Plain Diff
Removed no longer needed JobStatus stepper
parent
ce57ef36
No related branches found
No related tags found
2 merge requests
!612
Release 5.0.0
,
!545
CE-2825: Default stepper to custom
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Job/JobStatus.js
+1
-23
1 addition, 23 deletions
src/components/Job/JobStatus.js
with
1 addition
and
23 deletions
src/components/Job/JobStatus.js
+
1
−
23
View file @
a2199e3f
import
{
Stepper
,
STEPPER_STATES
,
LabeledIcon
}
from
"
@ess-ics/ce-ui-common
"
;
import
{
STEPPER_STATES
,
LabeledIcon
}
from
"
@ess-ics/ce-ui-common
"
;
import
{
HelpOutline
}
from
"
@mui/icons-material
"
;
import
{
HelpOutline
}
from
"
@mui/icons-material
"
;
const
ActiveIcon
=
STEPPER_STATES
.
active
.
outlinedIcon
;
const
ActiveIcon
=
STEPPER_STATES
.
active
.
outlinedIcon
;
...
@@ -42,28 +42,6 @@ const STATUS = {
...
@@ -42,28 +42,6 @@ const STATUS = {
}
}
};
};
export
const
JobStatusStepper
=
({
job
,
operation
})
=>
{
const
normalizedStatus
=
job
?.
status
?.
toLowerCase
();
const
currentStep
=
Object
.
keys
(
STEPPER_STATUS
).
indexOf
(
normalizedStatus
);
let
activeStep
=
STEPPER_STATUS
[
normalizedStatus
]
?
currentStep
+
1
:
currentStep
;
const
jobFailed
=
job
?.
status
?.
toLowerCase
()
===
"
failed
"
;
// to show the correct failed step for an already finished operation
if
(
jobFailed
)
{
activeStep
=
operation
?.
startTime
?
1
:
0
;
}
return
(
<
Stepper
steps
=
{
Object
.
values
(
STEPPER_STATUS
).
map
((
it
)
=>
it
.
label
)}
activeStep
=
{
activeStep
}
isActiveStepFailed
=
{
jobFailed
}
/
>
);
};
export
const
JobStatusIcon
=
({
job
})
=>
{
export
const
JobStatusIcon
=
({
job
})
=>
{
const
activeStep
=
STATUS
[
job
?.
status
?.
toLowerCase
()]
??
STATUS
.
unknown
;
const
activeStep
=
STATUS
[
job
?.
status
?.
toLowerCase
()]
??
STATUS
.
unknown
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment