mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -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', () => {
|
||||
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…
Reference in New Issue
Block a user