Reload the route when using the app header search input.

This commit is contained in:
Jannis Leidel
2018-08-16 17:49:25 +02:00
parent a0e8c3d2e5
commit b746c433ea

View File

@@ -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 = () => {