mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: remove comments feature (#64644)
This commit is contained in:
@@ -3,9 +3,7 @@ import React from 'react';
|
||||
|
||||
import { GrafanaTheme2, textUtil } from '@grafana/data';
|
||||
import { HorizontalGroup, IconButton, Tag, useStyles2 } from '@grafana/ui';
|
||||
import config from 'app/core/config';
|
||||
import alertDef from 'app/features/alerting/state/alertDef';
|
||||
import { CommentManager } from 'app/features/comments/CommentManager';
|
||||
|
||||
import { AnnotationsDataFrameViewDTO } from '../types';
|
||||
|
||||
@@ -64,10 +62,8 @@ export const AnnotationTooltip = ({
|
||||
);
|
||||
}
|
||||
|
||||
const areAnnotationCommentsEnabled = config.featureToggles.annotationComments;
|
||||
|
||||
return (
|
||||
<div className={styles.wrapper} style={areAnnotationCommentsEnabled ? { minWidth: '300px' } : {}}>
|
||||
<div className={styles.wrapper}>
|
||||
<div className={styles.header}>
|
||||
<HorizontalGroup justify={'space-between'} align={'center'} spacing={'md'}>
|
||||
<div className={styles.meta}>
|
||||
@@ -91,11 +87,6 @@ export const AnnotationTooltip = ({
|
||||
))}
|
||||
</HorizontalGroup>
|
||||
</>
|
||||
{areAnnotationCommentsEnabled && (
|
||||
<div className={styles.commentWrapper}>
|
||||
<CommentManager objectType={'annotation'} objectId={annotation.id.toString()} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user