@@ -321,20 +321,28 @@ export class WorkflowRunJobComponent implements OnInit, OnDestroy {
321
321
return DurationService . duration ( fromM . toDate ( ) , to ? to . toDate ( ) : moment ( ) . toDate ( ) ) ;
322
322
}
323
323
324
- async clickExpandStepDown ( index : number ) {
324
+ async clickExpandStepDown ( index : number , event : MouseEvent ) {
325
+ let limit = this . expandLoadLinesCount
326
+ if ( event . shiftKey ) {
327
+ limit = 0
328
+ }
325
329
let step = this . steps [ index ] ;
326
330
let result = await this . _workflowService . getLogLines ( step . link ,
327
- { offset : `${ step . lines [ step . lines . length - 1 ] . number + 1 } ` , limit : `${ this . expandLoadLinesCount } ` }
331
+ { offset : `${ step . lines [ step . lines . length - 1 ] . number + 1 } ` , limit : `${ limit } ` }
328
332
) . toPromise ( ) ;
329
333
this . steps [ index ] . totalLinesCount = result . totalCount ;
330
334
this . steps [ index ] . lines = step . lines . concat ( result . lines . filter ( l => ! step . endLines . find ( line => line . number === l . number ) ) ) ;
331
335
this . _cd . markForCheck ( ) ;
332
336
}
333
337
334
- async clickExpandStepUp ( index : number ) {
338
+ async clickExpandStepUp ( index : number , event : MouseEvent ) {
339
+ let limit = this . expandLoadLinesCount
340
+ if ( event . shiftKey ) {
341
+ limit = 0
342
+ }
335
343
let step = this . steps [ index ] ;
336
344
let result = await this . _workflowService . getLogLines ( step . link ,
337
- { offset : `-${ step . endLines . length + this . expandLoadLinesCount } ` , limit : `${ this . expandLoadLinesCount } ` }
345
+ { offset : `-${ step . endLines . length + this . expandLoadLinesCount } ` , limit : `${ limit } ` }
338
346
) . toPromise ( ) ;
339
347
this . steps [ index ] . totalLinesCount = result . totalCount ;
340
348
this . steps [ index ] . endLines = result . lines . filter ( l => ! step . lines . find ( line => line . number === l . number )
0 commit comments