Chore: remove comments feature (#64644)

This commit is contained in:
Ryan McKinley
2023-03-11 04:28:12 -08:00
committed by GitHub
parent 18e3e0ca8d
commit d5a9a0cea0
30 changed files with 2 additions and 1262 deletions

View File

@@ -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>
);