@@ -268,6 +268,10 @@ const sfc = {
268
268
return [' success' , ' skipped' , ' failure' , ' cancelled' ].includes (status);
269
269
},
270
270
271
+ isExpandable (status ) {
272
+ return [' success' , ' running' , ' failure' , ' cancelled' ].includes (status);
273
+ },
274
+
271
275
closeDropdown () {
272
276
if (this .menuVisible ) this .menuVisible = false ;
273
277
},
@@ -459,12 +463,12 @@ export function initRepositoryActionView() {
459
463
< / div>
460
464
< div class = " job-step-container" ref= " steps" v- if = " currentJob.steps.length" >
461
465
< div class = " job-step-section" v- for = " (jobStep, i) in currentJob.steps" : key= " i" >
462
- < div class = " job-step-summary" @click .stop = " toggleStepLogs(i)" : class = " currentJobStepsStates[i].expanded ? 'selected' : ''" >
466
+ < div class = " job-step-summary" @click .stop = " jobStep.status !== 'skipped' && toggleStepLogs(i)" : class = " [ currentJobStepsStates[i].expanded ? 'selected' : '', isExpandable(jobStep.status) && 'step-expandable'] " >
463
467
<!-- If the job is done and the job step log is loaded for the first time, show the loading icon
464
468
currentJobStepsStates[i].cursor === null means the log is loaded for the first time
465
469
-->
466
470
< SvgIcon v- if = " isDone(run.status) && currentJobStepsStates[i].expanded && currentJobStepsStates[i].cursor === null" name= " octicon-sync" class = " gt-mr-3 job-status-rotate" / >
467
- < SvgIcon v- else : name= " currentJobStepsStates[i].expanded ? 'octicon-chevron-down': 'octicon-chevron-right'" class = " gt-mr-3" / >
471
+ < SvgIcon v- else : name= " currentJobStepsStates[i].expanded ? 'octicon-chevron-down': 'octicon-chevron-right'" : class = " [' gt-mr-3', !isExpandable(jobStep.status) && 'tw-invisible'] " / >
468
472
< ActionRunStatus : status= " jobStep.status" class = " gt-mr-3" / >
469
473
470
474
< span class = " step-summary-msg gt-ellipsis" > {{ jobStep .summary }}< / span>
@@ -715,13 +719,21 @@ export function initRepositoryActionView() {
715
719
}
716
720
717
721
.job - step- container .job - step- summary {
718
- cursor: pointer;
719
722
padding: 5px 10px ;
720
723
display: flex;
721
724
align- items: center;
722
725
border- radius: var (-- border- radius);
723
726
}
724
727
728
+ .job - step- container .job - step- summary .step - expandable {
729
+ cursor: pointer;
730
+ }
731
+
732
+ .job - step- container .job - step- summary .step - expandable: hover {
733
+ color: var (-- color- console - fg);
734
+ background- color: var (-- color- console - hover- bg);
735
+ }
736
+
725
737
.job - step- container .job - step- summary .step - summary- msg {
726
738
flex: 1 ;
727
739
}
@@ -730,12 +742,6 @@ export function initRepositoryActionView() {
730
742
margin- left: 16px ;
731
743
}
732
744
733
- .job - step- container .job - step- summary: hover {
734
- color: var (-- color- console - fg);
735
- background- color: var (-- color- console - hover- bg);
736
-
737
- }
738
-
739
745
.job - step- container .job - step- summary .selected {
740
746
color: var (-- color- console - fg);
741
747
background- color: var (-- color- console - active- bg);
0 commit comments