vvysotskyi commented on a change in pull request #1999: DRILL-7582: Moved 
Drillbits REST API communication to the back end layer
URL: https://github.com/apache/drill/pull/1999#discussion_r384687532
 
 

 ##########
 File path: exec/java-exec/src/main/resources/rest/index.ftl
 ##########
 @@ -350,17 +340,17 @@
                 
currentRow.find("#shutdown").prop('disabled',true).css('opacity',0.5).css('cursor','not-allowed');
                 currentRow.find("#queriesCount").text("");
             } else {
-                if (status_map[key] == "ONLINE") {
+                if (status_map[key] === "ONLINE") {
                     
currentRow.find("#status").text(status_map[key]).css('font-style','').prop('title','');
-                    //EnableShutdown IFF => !isAuthEnabled-&&-!HTTPS OR 
isAuthEnabled-&&-current
-                    if ( ( !${model.isAuthEnabled()?c} && location.protocol != 
"https:" ) || ( ${model.shouldShowAdminInfo()?c} && 
currentRow.find("#current").html() == "Current" ) ) {
+                    //EnableShutdown IFF => !isAuthEnabled OR 
isAuthEnabled-&&-current
+                    if ( ( !${model.isAuthEnabled()?c} ) || ( 
${model.shouldShowAdminInfo()?c} && currentRow.find("#current").html() === 
"Current" ) ) {
                       
currentRow.find("#shutdown").prop('disabled',false).css('opacity',1.0).css('cursor','pointer').attr('title','');
                     }
                 } else {
-                    if (currentRow.find("#current").html() == "Current") {
+                    if (currentRow.find("#current").html() === "Current") {
                         fillQueryCount(i);
                     }
-                    
currentRow.find("#status").text(status_map[key]).css('font-style','').prop('title','');;
+                  
currentRow.find("#status").text(status_map[key]).css('font-style', 
'').prop('title', '');
 
 Review comment:
   Something bad with indentation here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to