@@ -389,6 +389,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
389389 </ div >
390390 </ div >
391391 </ fieldset >
392+ < p v-if ="dataLoading && !data "> Loading ...</ p >
392393 < div v-if ="data " id ="content " style ="margin-top: 15px ">
393394 < div id ="summary ">
394395 < 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">{
421422 </ div >
422423 </ div >
423424 < table id ="benches " class ="compare ">
424- < tbody >
425+ < thead >
425426 < tr >
426427 < th > Benchmark & Profile</ th >
427428 < th > Scenario</ th >
@@ -440,8 +441,11 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
440441 < th > {{before}}</ th >
441442 < th > {{after}}</ th >
442443 </ tr >
444+ </ thead >
445+ < tbody v-if ="testCases.length === 0 ">
446+ < tr > < td colspan ="6 "> No results</ td > </ tr >
443447 </ tbody >
444- < tbody >
448+ < tbody v-else >
445449 < template v-for ="testCase in testCases ">
446450 < tr >
447451 < td > {{ testCase.benchmark }} {{ testCase.profile }}</ td >
@@ -534,7 +538,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
534538 incrPatched : true
535539 }
536540 } ,
537- data : null
541+ data : null ,
542+ dataLoading : false
538543 } ,
539544 computed : {
540545 notContinuous ( ) {
@@ -783,6 +788,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
783788 }
784789
785790 function makeData ( state ) {
791+ app . dataLoading = true ;
786792 let values = Object . assign ( { } , {
787793 start : "" ,
788794 end : "" ,
@@ -795,6 +801,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
795801 }
796802 makeRequest ( "/get" , values ) . then ( function ( data ) {
797803 app . data = data ;
804+ } ) . finally ( function ( ) {
805+ app . dataLoading = false ;
798806 } ) ;
799807 }
800808
0 commit comments