Keybindings: Disable on login url (#18331)

pull/18350/head
Tobias Skarhed 6 years ago committed by GitHub
parent c9f7e3059f
commit 85da4a169d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/core/services/keybindingSrv.ts

@ -39,7 +39,7 @@ export class KeybindingSrv {
}
setupGlobal() {
if (this.contextSrv.user.isSignedIn) {
if (!(this.$location.path() === '/login')) {
this.bind(['?', 'h'], this.showHelpModal);
this.bind('g h', this.goToHome);
this.bind('g a', this.openAlerting);

Loading…
Cancel
Save