|
|
@@ -94,7 +94,10 @@ from notebook.conf import get_ordered_interpreters
|
|
|
<li><a href="javascript:void(0);" data-bind="click: dblClick"><i class="fa fa-fw fa-paste"></i> ${ _('Insert at cursor') }</a></li>
|
|
|
<!-- /ko -->
|
|
|
<!-- ko if: definition.isView || definition.isTable || definition.isDatabase -->
|
|
|
- <li><a href="javascript:void(0);" data-bind="click: openInMetastore"><i class="fa fa-fw fa-table"></i> ${ _('Open in Table Browser') }</a></li>
|
|
|
+ <li><a href="javascript:void(0);" data-bind="click: openInMetastore"><i class="fa fa-fw fa-table"></i> ${ _('Open in Browser') }</a></li>
|
|
|
+ <!-- /ko -->
|
|
|
+ <!-- ko if: definition.isView || definition.isTable -->
|
|
|
+ <li><a href="javascript:void(0);" data-bind="click: function() { huePubSub.publish('query.and.watch', {'url': '/notebook/browse/' + databaseName + '/' + tableName + '/', sourceType: sourceType}); }"><i class="fa fa-fw fa-code"></i> ${ _('Open in Editor') }</a></li>
|
|
|
<!-- /ko -->
|
|
|
%if ENABLE_QUERY_BUILDER.get():
|
|
|
<!-- ko if: definition.isColumn && $currentApp() === 'editor' -->
|
|
|
@@ -1630,7 +1633,7 @@ from notebook.conf import get_ordered_interpreters
|
|
|
self.lastOpenPanelType(newValue.type);
|
|
|
newValue.panelData.init();
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
self.visiblePanel(lastFoundPanel.length === 1 ? lastFoundPanel[0] : self.availablePanels()[0]);
|
|
|
});
|
|
|
|