mirror of https://github.com/apache/superset.git
Only list tables in DB test if API returns them (which it doesn't) (#8681)
* only list tables if we get an array of them back (which we probably never will) * nixing old/busted table display
This commit is contained in:
parent
16c0599470
commit
e21f768a92
|
@ -57,15 +57,6 @@
|
|||
contentType: "application/json; charset=utf-8"
|
||||
}).done(function(data) {
|
||||
alert("Seems OK!");
|
||||
if ($('#tables').length == 0)
|
||||
$('body div.container').append('<div id="tables"></div>');
|
||||
div = $('#tables')
|
||||
div.html('Tables:<br>');
|
||||
$.each(data, function(i, d){
|
||||
var id = 'tbl_' + d;
|
||||
div.append('<span id="' + id + '" style="margin: 0px 10px 10px 0px;" class="btn btn-default">' + d + '</span>')
|
||||
$('#' + id).click(function(){window.location = '/tablemodelview/add';})
|
||||
});
|
||||
}).fail(function(error) {
|
||||
var respJSON = error.responseJSON;
|
||||
var errorMsg = error.responseText;
|
||||
|
|
Loading…
Reference in New Issue