mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Reload the route when using the app header search input.
This commit is contained in:
@@ -6,7 +6,7 @@ import './app-header.css';
|
||||
|
||||
const logger = debug('redash:appHeader');
|
||||
|
||||
function controller($rootScope, $location, $uibModal, Auth, currentUser, clientConfig, Dashboard, Query) {
|
||||
function controller($rootScope, $location, $route, $uibModal, Auth, currentUser, clientConfig, Dashboard, Query) {
|
||||
this.logoUrl = logoUrl;
|
||||
this.basePath = clientConfig.basePath;
|
||||
this.currentUser = currentUser;
|
||||
@@ -41,6 +41,7 @@ function controller($rootScope, $location, $uibModal, Auth, currentUser, clientC
|
||||
|
||||
this.searchQueries = () => {
|
||||
$location.path('/queries').search({ q: this.term });
|
||||
$route.reload();
|
||||
};
|
||||
|
||||
this.logout = () => {
|
||||
|
||||
Reference in New Issue
Block a user