소스 검색

HUE-3203 [metastore] Allow load data popup to show up

Romain Rigaux 9 년 전
부모
커밋
9ad223c
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      apps/metastore/src/metastore/static/metastore/js/metastore.ko.js

+ 2 - 6
apps/metastore/src/metastore/static/metastore/js/metastore.ko.js

@@ -376,12 +376,8 @@
   MetastoreTable.prototype.showImportData = function () {
     var self = this;
     $.get('/metastore/table/' + self.database.name + '/' + self.name + '/load', function (data) {
-      if (data.status == 0) {
-        $("#import-data-modal").html(data['data']);
-        $("#import-data-modal").modal("show");
-      } else {
-        $(document).trigger("error", data.message);
-      }
+      $("#import-data-modal").html(data['data']);
+      $("#import-data-modal").modal("show");
     }).fail(function (xhr, textStatus, errorThrown) {
       $(document).trigger("error", xhr.responseText);
     });