TraceView: Use global config for showing and hiding feedback link in trace view (#101504)

Use global config for showing feedback link in trace view
This commit is contained in:
Joey 2025-03-04 14:15:49 +00:00 committed by GitHub
parent ac0fd38183
commit b3ad7ce151
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 12 deletions

View File

@ -66,18 +66,20 @@ export default function TracePageActions(props: TracePageActionsProps) {
return (
<div className={styles.TracePageActions}>
<div className={styles.feedbackContainer}>
<Icon name="comment-alt-message" />
<a
href="https://forms.gle/RZDEx8ScyZNguDoC8"
className={styles.feedback}
title="Share your thoughts about tracing in Grafana."
target="_blank"
rel="noreferrer noopener"
>
Give feedback
</a>
</div>
{config.feedbackLinksEnabled && (
<div className={styles.feedbackContainer}>
<Icon name="comment-alt-message" />
<a
href="https://forms.gle/RZDEx8ScyZNguDoC8"
className={styles.feedback}
title="Share your thoughts about tracing in Grafana."
target="_blank"
rel="noreferrer noopener"
>
Give feedback
</a>
</div>
)}
<ActionButton
onClick={copyTraceId}