Преглед изворни кода

HUE-4242 [editor] Retry should use generic callback for the current operation

Could be a fetchResult() or executeStatement()
Romain Rigaux пре 9 година
родитељ
комит
d6010d0
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 3 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -653,7 +653,9 @@
           huePubSub.publish('hide.retry.modal');
         }
         notebook.retryModalConfirm = function () {
-          self.execute();
+          if (callback) {
+            callback();
+          };
           huePubSub.publish('hide.retry.modal');
         }
         huePubSub.publish('show.retry.modal');