mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix errant text appearing in AnnotationSettingsList table (#42360)
This commit is contained in:
parent
820aa3ac59
commit
130386f84b
@ -40,15 +40,14 @@ export const AnnotationSettingsList: React.FC<Props> = ({ dashboard, onNew, onEd
|
||||
<tbody>
|
||||
{dashboard.annotations.list.map((annotation, idx) => (
|
||||
<tr key={`${annotation.name}-${idx}`}>
|
||||
{!annotation.builtIn && (
|
||||
<td className="pointer" onClick={() => onEdit(idx)}>
|
||||
<Icon name="comment-alt" /> {annotation.name}
|
||||
</td>
|
||||
)}
|
||||
{annotation.builtIn && (
|
||||
{annotation.builtIn ? (
|
||||
<td style={{ width: '90%' }} className="pointer" onClick={() => onEdit(idx)}>
|
||||
<Icon name="comment-alt" /> <em className="muted">{annotation.name} (Built-in)</em>
|
||||
</td>
|
||||
) : (
|
||||
<td className="pointer" onClick={() => onEdit(idx)}>
|
||||
<Icon name="comment-alt" /> {annotation.name}
|
||||
</td>
|
||||
)}
|
||||
<td className="pointer" onClick={() => onEdit(idx)}>
|
||||
{annotation.datasource || 'Default'}
|
||||
|
Loading…
Reference in New Issue
Block a user