The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/features/dashboard-scene/scene/UnlinkModal.tsx

25 lines
709 B

import { ConfirmModal } from '@grafana/ui';
interface Props {
isOpen: boolean;
onConfirm: () => void;
onDismiss: () => void;
}
export const UnlinkModal = ({ isOpen, onConfirm, onDismiss }: Props) => {
return (
<ConfirmModal
title="Do you really want to unlink this panel?"
icon="question-circle"
body="If you unlink this panel, you will be able to edit it without affecting any other dashboards.
However, once you make a change you will not be able to revert to its original reusable panel."
confirmText="Yes, unlink"
onConfirm={() => {
onConfirm();
onDismiss();
}}
onDismiss={onDismiss}
isOpen={isOpen}
/>
);
};