|
@@ -65,14 +65,14 @@ ${ assist.assistPanel() }
|
|
|
<i class="fa fa-th muted"></i>
|
|
<i class="fa fa-th muted"></i>
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
- <a href="javascript:void(0);" data-bind="click: function() { database(null); huePubSub.publish('metastore.url.change'); }">${_('Databases')}</a>
|
|
|
|
|
|
|
+ <a href="javascript:void(0);" data-bind="click: databasesBreadcrumb">${_('Databases')}</a>
|
|
|
<!-- ko if: database -->
|
|
<!-- ko if: database -->
|
|
|
<span class="divider">></span>
|
|
<span class="divider">></span>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</li>
|
|
</li>
|
|
|
<!-- ko with: database -->
|
|
<!-- ko with: database -->
|
|
|
<li>
|
|
<li>
|
|
|
- <a href="javascript:void(0);" data-bind="text: name, click: function() { $root.database().table(null); huePubSub.publish('metastore.url.change'); }"></a>
|
|
|
|
|
|
|
+ <a href="javascript:void(0);" data-bind="text: name, click: $root.tablesBreadcrumb"></a>
|
|
|
<!-- ko if: table -->
|
|
<!-- ko if: table -->
|
|
|
<span class="divider">></span>
|
|
<span class="divider">></span>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
@@ -1290,6 +1290,19 @@ ${ assist.assistPanel() }
|
|
|
loadURL();
|
|
loadURL();
|
|
|
|
|
|
|
|
window.onpopstate = loadURL;
|
|
window.onpopstate = loadURL;
|
|
|
|
|
+
|
|
|
|
|
+ self.databasesBreadcrumb = function () {
|
|
|
|
|
+ if (self.database()) {
|
|
|
|
|
+ self.database().table(null);
|
|
|
|
|
+ }
|
|
|
|
|
+ self.database(null);
|
|
|
|
|
+ huePubSub.publish('metastore.url.change');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ self.tablesBreadcrumb = function () {
|
|
|
|
|
+ self.database().table(null);
|
|
|
|
|
+ huePubSub.publish('metastore.url.change')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MetastoreViewModel.prototype.setDatabase = function (metastoreDatabase, callback) {
|
|
MetastoreViewModel.prototype.setDatabase = function (metastoreDatabase, callback) {
|