瀏覽代碼

Keybindings: Disable on login url (#18331)

Tobias Skarhed 6 年之前
父節點
當前提交
85da4a169d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/core/services/keybindingSrv.ts

+ 1 - 1
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);