@@ -321,20 +321,28 @@ export class WorkflowRunJobComponent implements OnInit, OnDestroy {
321321 return DurationService . duration ( fromM . toDate ( ) , to ? to . toDate ( ) : moment ( ) . toDate ( ) ) ;
322322 }
323323
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+ }
325329 let step = this . steps [ index ] ;
326330 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 } ` }
328332 ) . toPromise ( ) ;
329333 this . steps [ index ] . totalLinesCount = result . totalCount ;
330334 this . steps [ index ] . lines = step . lines . concat ( result . lines . filter ( l => ! step . endLines . find ( line => line . number === l . number ) ) ) ;
331335 this . _cd . markForCheck ( ) ;
332336 }
333337
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+ }
335343 let step = this . steps [ index ] ;
336344 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 } ` }
338346 ) . toPromise ( ) ;
339347 this . steps [ index ] . totalLinesCount = result . totalCount ;
340348 this . steps [ index ] . endLines = result . lines . filter ( l => ! step . lines . find ( line => line . number === l . number )
0 commit comments