@@ -260,7 +260,7 @@ export default Component.extend({
260
260
* @method scrollTop
261
261
*/
262
262
scrollTop ( ) {
263
- this . $ ( '.wrap' ) [ 0 ] . scrollTop = 0 ;
263
+ this . element . querySelectorAll ( '.wrap' ) [ 0 ] . scrollTop = 0 ;
264
264
} ,
265
265
266
266
/**
@@ -269,9 +269,9 @@ export default Component.extend({
269
269
*/
270
270
scrollDown ( ) {
271
271
if ( this . autoscroll ) {
272
- const bottom = this . $ ( '.bottom' ) . prop ( ' offsetTop' ) ;
272
+ const bottom = this . element . querySelector ( '.bottom' ) . offsetTop ;
273
273
274
- this . $ ( '.wrap' ) . prop ( ' scrollTop' , bottom ) ;
274
+ this . element . querySelector ( '.wrap' ) . scrollTop = bottom ;
275
275
set ( this , 'lastScrollTop' , bottom ) ;
276
276
}
277
277
} ,
@@ -281,7 +281,7 @@ export default Component.extend({
281
281
* @method scrollStill
282
282
*/
283
283
scrollStill ( ) {
284
- const container = this . $ ( '.wrap' ) [ 0 ] ;
284
+ const container = this . element . querySelectorAll ( '.wrap' ) [ 0 ] ;
285
285
286
286
set (
287
287
this ,
@@ -321,7 +321,7 @@ export default Component.extend({
321
321
. then ( ( { done } ) => {
322
322
// prevent updating logs when component is being destroyed
323
323
if ( ! this . isDestroyed && ! this . isDestroying ) {
324
- const container = this . $ ( '.wrap' ) [ 0 ] ;
324
+ const container = this . element . querySelectorAll ( '.wrap' ) [ 0 ] ;
325
325
const { inProgress, justFinished } = this ;
326
326
327
327
set ( this , 'isFetching' , false ) ;
@@ -370,18 +370,19 @@ export default Component.extend({
370
370
set ( this , 'isDownloading' , true ) ;
371
371
372
372
this . getLogs ( true ) . then ( ( ) => {
373
- this . $ ( '#downloadLink' )
374
- . attr ( {
375
- download : `${ buildId } -${ stepName } .log` ,
376
- href : this . logService . buildLogBlobUrl ( buildId , stepName )
377
- } ) [ 0 ]
378
- . click ( ) ;
373
+ const el = this . element . querySelectorAll ( '#downloadLink' ) ;
374
+
375
+ el . forEach ( e => {
376
+ e . setAttribute ( 'download' , `${ buildId } -${ stepName } .log` ) ;
377
+ e . setAttribute ( 'href' , this . logService . buildLogBlobUrl ( buildId , stepName ) ) ;
378
+ } ) ;
379
+ el [ 0 ] . click ( ) ;
379
380
set ( this , 'isDownloading' , false ) ;
380
381
} ) ;
381
382
}
382
383
} ,
383
384
logScroll ( ) {
384
- const container = this . $ ( '.wrap' ) [ 0 ] ;
385
+ const container = this . element . querySelectorAll ( '.wrap' ) [ 0 ] ;
385
386
386
387
if (
387
388
! this . inProgress &&
@@ -395,7 +396,11 @@ export default Component.extend({
395
396
}
396
397
397
398
// autoscroll when the bottom of the logs is roughly in view
398
- set ( this , 'autoscroll' , this . $ ( '.bottom' ) [ 0 ] . getBoundingClientRect ( ) . top < 1500 ) ;
399
+ set (
400
+ this ,
401
+ 'autoscroll' ,
402
+ this . element . querySelectorAll ( '.bottom' ) [ 0 ] . getBoundingClientRect ( ) . top < 1500
403
+ ) ;
399
404
} ,
400
405
toggleTimeDisplay ( ) {
401
406
let index = timeTypes . indexOf ( this . timeFormat ) ;
0 commit comments