Prechádzať zdrojové kódy

Merge pull request #8876 from mtanda/shortcut_new_dashboard

add new dashboard shortcut
Carl Bergquist 8 rokov pred
rodič
commit
62979916ad
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      public/app/core/services/keybindingSrv.ts

+ 4 - 0
public/app/core/services/keybindingSrv.ts

@@ -193,6 +193,10 @@ export class KeybindingSrv {
       }
     });
 
+    this.bind('d n', e => {
+      this.$location.url("/dashboard/new");
+    });
+
     this.bind('d r', () => {
       scope.broadcastRefresh();
     });