KeybindingSrv: Prevent dashboard save modal when dashboard cannot be saved (#42505)
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user