|
@@ -607,7 +607,6 @@ ${ components.menubar() }
|
|
|
% endif
|
|
% endif
|
|
|
% if has_write_access:
|
|
% if has_write_access:
|
|
|
<a class="inactive-action" href="#dropSingleTable" data-toggle="modal" data-bind="tooltip: { placement: 'bottom', delay: 750 }, attr: { 'title' : tableDetails() && tableDetails().is_view ? '${_('Drop View')}' : '${_('Drop Table')}' }"><i class="fa fa-times fa-fw"></i></a>
|
|
<a class="inactive-action" href="#dropSingleTable" data-toggle="modal" data-bind="tooltip: { placement: 'bottom', delay: 750 }, attr: { 'title' : tableDetails() && tableDetails().is_view ? '${_('Drop View')}' : '${_('Drop Table')}' }"><i class="fa fa-times fa-fw"></i></a>
|
|
|
- ##
|
|
|
|
|
% endif
|
|
% endif
|
|
|
<!-- ko if: tableDetails() -->
|
|
<!-- ko if: tableDetails() -->
|
|
|
<!-- ko if: tableDetails().partition_keys.length -->
|
|
<!-- ko if: tableDetails().partition_keys.length -->
|
|
@@ -1098,7 +1097,12 @@ ${ components.menubar() }
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="dropSingleTable" class="modal hide fade">
|
|
<div id="dropSingleTable" class="modal hide fade">
|
|
|
|
|
+ % if is_embeddable:
|
|
|
|
|
+ <form data-bind="submit: dropTables" method="POST">
|
|
|
|
|
+ <input type="hidden" name="is_embeddable" value="true"/>
|
|
|
|
|
+ % else:
|
|
|
<form method="POST">
|
|
<form method="POST">
|
|
|
|
|
+ % endif
|
|
|
${ csrf_token(request) | n,unicode }
|
|
${ csrf_token(request) | n,unicode }
|
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
|
<a href="#" class="close" data-dismiss="modal">×</a>
|
|
<a href="#" class="close" data-dismiss="modal">×</a>
|
|
@@ -1127,10 +1131,11 @@ ${ components.menubar() }
|
|
|
success: function(resp) {
|
|
success: function(resp) {
|
|
|
if (resp.history_uuid) {
|
|
if (resp.history_uuid) {
|
|
|
huePubSub.publish('notebook.task.submitted', resp.history_uuid);
|
|
huePubSub.publish('notebook.task.submitted', resp.history_uuid);
|
|
|
- } else {
|
|
|
|
|
- $(document).trigger("error", data.message);
|
|
|
|
|
|
|
+ } else if (resp && resp.message) {
|
|
|
|
|
+ $(document).trigger("error", resp.message);
|
|
|
}
|
|
}
|
|
|
$("#dropTable").modal('hide');
|
|
$("#dropTable").modal('hide');
|
|
|
|
|
+ $("#dropSingleTable").modal('hide');
|
|
|
},
|
|
},
|
|
|
error: function (xhr, textStatus, errorThrown) {
|
|
error: function (xhr, textStatus, errorThrown) {
|
|
|
$(document).trigger("error", xhr.responseText);
|
|
$(document).trigger("error", xhr.responseText);
|