diff --git a/public/app/plugins/panel/timeseries/TimeSeriesPanel.tsx b/public/app/plugins/panel/timeseries/TimeSeriesPanel.tsx index 56ed14fd73d..359cf475ad6 100644 --- a/public/app/plugins/panel/timeseries/TimeSeriesPanel.tsx +++ b/public/app/plugins/panel/timeseries/TimeSeriesPanel.tsx @@ -71,39 +71,45 @@ export const TimeSeriesPanel: React.FC = ({ )} {/* Enables annotations creation*/} - - {({ startAnnotating }) => { - return ( - + {({ startAnnotating }) => { + return ( + { - if (!p) { - return; - } - startAnnotating({ coords: p.coords }); - }, - }, - ], + label: 'Add annotation', + ariaLabel: 'Add annotation', + icon: 'comment-alt', + onClick: (e, p) => { + if (!p) { + return; + } + startAnnotating({ coords: p.coords }); + }, }, - ] - : [] - } - /> - ); - }} - + ], + }, + ]} + /> + ); + }} + + ) : ( + + )} {data.annotations && (