|
@@ -1033,7 +1033,7 @@ ${ hueIcons.symbols() }
|
|
|
<ul class="nav nav-tabs">
|
|
<ul class="nav nav-tabs">
|
|
|
<li data-bind="click: function(){ currentQueryTab('queryHistory'); }, css: {'active': currentQueryTab() == 'queryHistory'}">
|
|
<li data-bind="click: function(){ currentQueryTab('queryHistory'); }, css: {'active': currentQueryTab() == 'queryHistory'}">
|
|
|
<a class="inactive-action" href="#queryHistory" data-toggle="tab">${_('Query History')}
|
|
<a class="inactive-action" href="#queryHistory" data-toggle="tab">${_('Query History')}
|
|
|
- <div class="inline-block inactive-action margin-left-10 pointer" title="${_('Search the query history')}" data-bind="visible: $parent.history().length > 0, click: function(data, e){ $parent.historyFilterVisible(!$parent.historyFilterVisible()); window.setTimeout(function(){ $(e.target).parent().siblings('input').focus(); }, 0); }"><i class="snippet-icon fa fa-search"></i></div>
|
|
|
|
|
|
|
+ <div class="inline-block inactive-action margin-left-10 pointer" title="${_('Search the query history')}" data-bind="click: function(data, e){ $parent.historyFilterVisible(!$parent.historyFilterVisible()); window.setTimeout(function(){ $(e.target).parent().siblings('input').focus(); }, 0); }"><i class="snippet-icon fa fa-search"></i></div>
|
|
|
<input class="input-small history-filter" type="text" data-bind="visible: $parent.historyFilterVisible, clearable: $parent.historyFilter, valueUpdate:'afterkeydown'" placeholder="${ _('Search...') }">
|
|
<input class="input-small history-filter" type="text" data-bind="visible: $parent.historyFilterVisible, clearable: $parent.historyFilter, valueUpdate:'afterkeydown'" placeholder="${ _('Search...') }">
|
|
|
<div class="inline-block inactive-action pointer" title="${_('Clear the query history')}" data-target="#clearHistoryModal" data-toggle="modal" rel="tooltip" data-bind="visible: $parent.history().length > 0"><i class="snippet-icon fa fa-calendar-times-o"></i></div>
|
|
<div class="inline-block inactive-action pointer" title="${_('Clear the query history')}" data-target="#clearHistoryModal" data-toggle="modal" rel="tooltip" data-bind="visible: $parent.history().length > 0"><i class="snippet-icon fa fa-calendar-times-o"></i></div>
|
|
|
</a>
|
|
</a>
|
|
@@ -1068,15 +1068,18 @@ ${ hueIcons.symbols() }
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
|
|
|
<!-- ko ifnot: $parent.loadingHistory -->
|
|
<!-- ko ifnot: $parent.loadingHistory -->
|
|
|
- <!-- ko if: $parent.history().length === 0 -->
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ko if: $parent.history().length === 0 && $parent.historyFilter() === '' -->
|
|
|
<div class="margin-top-20 margin-left-10" style="font-style: italic">${ _("No queries to be shown.") }</div>
|
|
<div class="margin-top-20 margin-left-10" style="font-style: italic">${ _("No queries to be shown.") }</div>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
+ <!-- ko if: $parent.history().length === 0 && $parent.historyFilter() !== '' -->
|
|
|
|
|
+ <div class="margin-top-20 margin-left-10" style="font-style: italic">${ _('No queries found for') } <strong data-bind="text: $parent.historyFilter"></strong>.</div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<!-- ko if: $parent.history().length > 0 -->
|
|
<!-- ko if: $parent.history().length > 0 -->
|
|
|
- <!-- ko if: $parent.history().length > 0 && $parent.filteredHistory().length == 0 -->
|
|
|
|
|
- <div class="muted margin-left-10 margin-top-10">${ _('No queries found for') } <strong data-bind="text: $parent.historyFilter"></strong>.</div>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
<table class="table table-condensed margin-top-10 history-table">
|
|
<table class="table table-condensed margin-top-10 history-table">
|
|
|
- <tbody data-bind="foreach: $parent.filteredHistory">
|
|
|
|
|
|
|
+ <tbody data-bind="foreach: $parent.history">
|
|
|
<tr data-bind="click: function() { if (uuid() != $root.selectedNotebook().uuid()) { $root.openNotebook(uuid()); } }, css: { 'highlight': uuid() == $root.selectedNotebook().uuid(), 'pointer': uuid() != $root.selectedNotebook().uuid() }">
|
|
<tr data-bind="click: function() { if (uuid() != $root.selectedNotebook().uuid()) { $root.openNotebook(uuid()); } }, css: { 'highlight': uuid() == $root.selectedNotebook().uuid(), 'pointer': uuid() != $root.selectedNotebook().uuid() }">
|
|
|
<td style="width: 100px" class="muted" data-bind="style: {'border-top-width': $index() == 0 ? '0' : ''}">
|
|
<td style="width: 100px" class="muted" data-bind="style: {'border-top-width': $index() == 0 ? '0' : ''}">
|
|
|
<span data-bind="momentFromNow: {data: lastExecuted, interval: 10000, titleFormat: 'LLL'}"></span>
|
|
<span data-bind="momentFromNow: {data: lastExecuted, interval: 10000, titleFormat: 'LLL'}"></span>
|
|
@@ -1106,7 +1109,7 @@ ${ hueIcons.symbols() }
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="tab-pane" id="savedQueries" data-bind="css: {'active': currentQueryTab() == 'savedQueries'}">
|
|
|
|
|
|
|
+ <div class="tab-pane" id="savedQueries" data-bind="css: {'active': currentQueryTab() == 'savedQueries'}" style="overflow: hidden">
|
|
|
<!-- ko if: loadingQueries -->
|
|
<!-- ko if: loadingQueries -->
|
|
|
<div style="padding: 20px">
|
|
<div style="padding: 20px">
|
|
|
<i class="fa fa-spinner fa-spin muted"></i>
|
|
<i class="fa fa-spinner fa-spin muted"></i>
|