KeybindingSrv: Prevent dashboard save modal when dashboard cannot be saved (#42505)

pull/42578/head
Dominik Prokop 4 years ago committed by GitHub
parent e170073aff
commit fa930e7dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      public/app/core/services/keybindingSrv.ts

@ -173,14 +173,16 @@ export class KeybindingSrv {
});
this.bind('mod+s', () => {
appEvents.publish(
new ShowModalReactEvent({
component: SaveDashboardModalProxy,
props: {
dashboard,
},
})
);
if (dashboard.meta.canSave) {
appEvents.publish(
new ShowModalReactEvent({
component: SaveDashboardModalProxy,
props: {
dashboard,
},
})
);
}
});
this.bind('t z', () => {

Loading…
Cancel
Save