mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
KeybindingSrv: Prevent dashboard save modal when dashboard cannot be saved (#42505)
This commit is contained in:
parent
e170073aff
commit
fa930e7dbd
@ -173,14 +173,16 @@ export class KeybindingSrv {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.bind('mod+s', () => {
|
this.bind('mod+s', () => {
|
||||||
appEvents.publish(
|
if (dashboard.meta.canSave) {
|
||||||
new ShowModalReactEvent({
|
appEvents.publish(
|
||||||
component: SaveDashboardModalProxy,
|
new ShowModalReactEvent({
|
||||||
props: {
|
component: SaveDashboardModalProxy,
|
||||||
dashboard,
|
props: {
|
||||||
},
|
dashboard,
|
||||||
})
|
},
|
||||||
);
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.bind('t z', () => {
|
this.bind('t z', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user