Skip to content

Commit

Permalink
Code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
igoristic committed Apr 27, 2020
1 parent d2df9c0 commit 1c79cc5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const changeCluster = (scope, globalState, kbnUrl, clusterUuid, ccs) => {
globalState.cluster_uuid = clusterUuid;
globalState.ccs = ccs;
globalState.save();
kbnUrl.changePath('/overview');
kbnUrl.redirect('/overview');
});
};

Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/monitoring/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
MONITORING_CONFIG_ALERTING_EMAIL_ADDRESS,
KIBANA_ALERTING_ENABLED,
} from '../common/constants';
import { uiRoutes } from './angular/helpers/routes';

export class MonitoringPlugin
implements Plugin<void, void, MonitoringPluginDependencies, MonitoringPluginDependencies> {
Expand Down Expand Up @@ -90,7 +89,6 @@ export class MonitoringPlugin
const monitoringApp = new AngularApp(deps);
const removeHistoryListener = params.history.listen(location => {
if (location.pathname === '' && location.hash === '') {
params.history.push({ hash: uiRoutes.redirect?.redirectTo || '/no-data' });
monitoringApp.applyScope();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ uiRoutes
}
if (clusters.length === 1) {
// Bypass the cluster listing if there is just 1 cluster
kbnUrl.changePath('/overview');
kbnUrl.redirect('/overview');
return Promise.reject();
}
return clusters;
Expand Down

0 comments on commit 1c79cc5

Please sign in to comment.