Skip to content

Commit

Permalink
Merge pull request #2372 from cbowman0/fix_dashboard_metrics_find
Browse files Browse the repository at this point in the history
Fix Dashboard Completer UI to work with changes to /metrics/find
  • Loading branch information
deniszh committed Oct 30, 2018
2 parents 1134385 + 901968f commit 64f3b10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp/content/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function initDashboard () {
url: document.body.dataset.baseUrl + 'metrics/find/',
autoLoad: true,
baseParams: {
query: '',
query: '*',
format: 'completer',
automatic_variants: (UI_CONFIG.automatic_variants) ? '1' : '0'
},
Expand Down Expand Up @@ -389,6 +389,9 @@ function initDashboard () {
var autocompleteTask = new Ext.util.DelayedTask(function () {
var query = metricSelectorTextField.getValue();
var store = metricSelectorGrid.getStore();
if (query === '') {
query = '*'
}
store.setBaseParam('query', query);
store.load();
});
Expand Down

0 comments on commit 64f3b10

Please sign in to comment.