@@ -389,6 +389,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
389
389
</ div >
390
390
</ div >
391
391
</ fieldset >
392
+ < p v-if ="dataLoading && !data "> Loading ...</ p >
392
393
< div v-if ="data " id ="content " style ="margin-top: 15px ">
393
394
< div id ="summary ">
394
395
< div v-for ="summaryPair in Object.entries(summary) " style ="display: flex; ">
@@ -421,7 +422,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
421
422
</ div >
422
423
</ div >
423
424
< table id ="benches " class ="compare ">
424
- < tbody >
425
+ < thead >
425
426
< tr >
426
427
< th > Benchmark & Profile</ th >
427
428
< th > Scenario</ th >
@@ -440,8 +441,11 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
440
441
< th > {{before}}</ th >
441
442
< th > {{after}}</ th >
442
443
</ tr >
444
+ </ thead >
445
+ < tbody v-if ="testCases.length === 0 ">
446
+ < tr > < td colspan ="6 "> No results</ td > </ tr >
443
447
</ tbody >
444
- < tbody >
448
+ < tbody v-else >
445
449
< template v-for ="testCase in testCases ">
446
450
< tr >
447
451
< td > {{ testCase.benchmark }} {{ testCase.profile }}</ td >
@@ -534,7 +538,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
534
538
incrPatched : true
535
539
}
536
540
} ,
537
- data : null
541
+ data : null ,
542
+ dataLoading : false
538
543
} ,
539
544
computed : {
540
545
notContinuous ( ) {
@@ -783,6 +788,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
783
788
}
784
789
785
790
function makeData ( state ) {
791
+ app . dataLoading = true ;
786
792
let values = Object . assign ( { } , {
787
793
start : "" ,
788
794
end : "" ,
@@ -795,6 +801,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
795
801
}
796
802
makeRequest ( "/get" , values ) . then ( function ( data ) {
797
803
app . data = data ;
804
+ } ) . finally ( function ( ) {
805
+ app . dataLoading = false ;
798
806
} ) ;
799
807
}
800
808
0 commit comments