소스 검색

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

Could be a fetchResult() or executeStatement()
Romain Rigaux 9 년 전
부모
커밋
d6010d0d01
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');
           huePubSub.publish('hide.retry.modal');
         }
         }
         notebook.retryModalConfirm = function () {
         notebook.retryModalConfirm = function () {
-          self.execute();
+          if (callback) {
+            callback();
+          };
           huePubSub.publish('hide.retry.modal');
           huePubSub.publish('hide.retry.modal');
         }
         }
         huePubSub.publish('show.retry.modal');
         huePubSub.publish('show.retry.modal');