(cherry picked from commit fa930e7dbd)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
co-authored by
Dominik Prokop
parent
f8ea86d4fd
commit
c8617b374a
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user