瀏覽代碼

HUE-6268 [metastore] Import table data button is misaligned

Enrico Berti 8 年之前
父節點
當前提交
a93404c

+ 1 - 1
apps/metastore/src/metastore/static/metastore/js/metastore.model.js

@@ -576,7 +576,7 @@ var MetastoreTable = (function () {
 
   MetastoreTable.prototype.showImportData = function () {
     var self = this;
-    $("#import-data-modal").empty().modal("show");
+    $("#import-data-modal").empty().html('<div class="modal-header"><button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button><h2 class="modal-title"></h2></div><div class="modal-body"><i class="fa fa-spinner fa-spin fa-2x muted"></i></div>').modal("show");
     $.get('/metastore/table/' + self.database.name + '/' + self.name + '/load', function (data) {
       $("#import-data-modal").html(data['data']);
     }).fail(function (xhr, textStatus, errorThrown) {

+ 1 - 1
apps/metastore/src/metastore/templates/metastore.mako

@@ -1148,7 +1148,7 @@ ${ components.menubar() }
     </form>
   </div>
 
-  <div id="import-data-modal" class="modal hide fade" style="display: block;width: 640px;margin-left: -320px!important;"></div>
+  <div id="import-data-modal" class="modal hide fade" style="display: block;width: 680px;margin-left: -340px!important;"></div>
 </div>
 </span>
 

+ 1 - 1
apps/metastore/src/metastore/templates/popups/load_data.mako

@@ -31,7 +31,7 @@ from django.utils.translation import ugettext as _
         <div class="control-group">
             ${comps.bootstrapLabel(load_form["path"])}
             <div class="controls">
-                ${comps.field(load_form["path"], placeholder="/user/user_name/data_dir/file", klass="pathChooser input-xxlarge", file_chooser=True, show_errors=True)}
+                ${comps.field(load_form["path"], placeholder="/user/user_name/data_dir/file", klass="pathChooser input-xlarge", file_chooser=True, show_errors=True)}
             </div>
         </div>