فهرست منبع

HUE-1583 [pig] Missing feedback when clicking on run

Now the logs section is displayed as soon as the process starts
Enrico Berti 12 سال پیش
والد
کامیت
1cf289318e
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 3 3
      apps/pig/static/js/pig.ko.js
  2. 1 0
      desktop/core/static/css/hue3.css

+ 3 - 3
apps/pig/static/js/pig.ko.js

@@ -478,7 +478,10 @@ var PigViewModel = function (props) {
 
   function callRun(script) {
     self.currentScript(script);
+    $(document).trigger("showLogs");
     $(document).trigger("running");
+    $(document).trigger("startLogsRefresh");
+    $("#submitModal").modal("hide");
     $.post(self.RUN_URL,
         {
           id: script.id(),
@@ -496,11 +499,8 @@ var PigViewModel = function (props) {
           }
           script.isRunning(true);
           script.watchUrl(data.watchUrl);
-          $(document).trigger("startLogsRefresh");
           $(document).trigger("refreshDashboard");
-          $(document).trigger("showLogs");
           self.updateScripts();
-          $("#submitModal").modal("hide");
         }, "json").fail( function(xhr, textStatus, errorThrown) {
           $(document).trigger("error", xhr.responseText);
         });

+ 1 - 0
desktop/core/static/css/hue3.css

@@ -1306,6 +1306,7 @@ a#advanced-btn:hover {
   height: 20px;
   margin-bottom: 0;
   padding: 0;
+  border: none;
 }
 
 .nav-list > li.white {