Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onDismiss = () => {
getLocationSrv().update({
query: { inspect: null },
partial: true,
});
};
this.bind('p i', () => {
if (dashboard.meta.focusPanelId) {
getLocationSrv().update({ partial: true, query: { inspect: dashboard.meta.focusPanelId } });
}
});
const onInspectPanel = (event: React.MouseEvent) => {
event.preventDefault();
getLocationSrv().update({
partial: true,
query: {
inspect: panel.id,
},
});
};
function infoCornerClicked() {
if (ctrl.error) {
getLocationSrv().update({ partial: true, query: { inspect: ctrl.panel.id } });
}
}
inspectPanel() {
getLocationSrv().update({
query: {
inspect: this.panel.id,
},
partial: true,
});
}
onClickError = () => {
getLocationSrv().update({ partial: true, query: { inspect: this.props.panel.id } });
};
this.bind('p i', () => {
if (dashboard.meta.focusPanelId) {
getLocationSrv().update({ partial: true, query: { inspect: dashboard.meta.focusPanelId } });
}
});