diff --git a/public/app/plugins/panel/timeseries/plugins/annotations2/AnnotationTooltip2.tsx b/public/app/plugins/panel/timeseries/plugins/annotations2/AnnotationTooltip2.tsx index 3b066537639..5dcb386b5f8 100644 --- a/public/app/plugins/panel/timeseries/plugins/annotations2/AnnotationTooltip2.tsx +++ b/public/app/plugins/panel/timeseries/plugins/annotations2/AnnotationTooltip2.tsx @@ -82,20 +82,9 @@ export const AnnotationTooltip2 = ({ annoVals, annoIdx, timeZone, isPinned, onCl {(canEdit || canDelete || isPinned) && (
- {isPinned && ( - { - // Don't trigger onClick - e.stopPropagation(); - onClose(); - }} - tooltip={t('timeseries.annotation-tooltip2.tooltip-close', 'Close')} - /> - )} {canEdit && ( onAnnotationDelete(annoId)} tooltip={t('timeseries.annotation-tooltip2.tooltip-delete', 'Delete')} /> )} + {isPinned && ( + { + // Don't trigger onClick + e.stopPropagation(); + onClose(); + }} + tooltip={t('timeseries.annotation-tooltip2.tooltip-close', 'Close')} + /> + )}
)}