Refactor: Remove unused extension links from DataSourceTestingStatus … (#110004)
This commit is contained in:
@@ -52,13 +52,7 @@ const getStyles = (theme: GrafanaTheme2, hasTitle: boolean) => {
|
||||
};
|
||||
};
|
||||
|
||||
const AlertSuccessMessage = ({
|
||||
title,
|
||||
exploreUrl,
|
||||
dataSourceId,
|
||||
onDashboardLinkClicked,
|
||||
extensionLinks = [],
|
||||
}: AlertMessageProps) => {
|
||||
const AlertSuccessMessage = ({ title, exploreUrl, dataSourceId, onDashboardLinkClicked }: AlertMessageProps) => {
|
||||
const theme = useTheme2();
|
||||
|
||||
const hasTitle = Boolean(title);
|
||||
@@ -90,26 +84,6 @@ const AlertSuccessMessage = ({
|
||||
</Link>
|
||||
.
|
||||
</Trans>
|
||||
|
||||
{/* Extension links for allowed datasource extension plugins */}
|
||||
{extensionLinks.length > 0 && (
|
||||
<div className={styles.extensionLinks}>
|
||||
<Trans i18nKey="data-source-testing-status-page.success-more-details-links-extensions">
|
||||
You can also explore data with the following extensions:
|
||||
</Trans>
|
||||
{extensionLinks.map((link) => (
|
||||
<Link
|
||||
key={link.id}
|
||||
href={link.path || '#'}
|
||||
title={link.description}
|
||||
className="external-link"
|
||||
onClick={'onClick' in link ? link.onClick : undefined}
|
||||
>
|
||||
{link.title}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -236,7 +210,6 @@ export function DataSourceTestingStatus({ testingStatus, exploreUrl, dataSource
|
||||
exploreUrl={exploreUrl}
|
||||
dataSourceId={dataSource.uid}
|
||||
onDashboardLinkClicked={onDashboardLinkClicked}
|
||||
extensionLinks={extensionLinks}
|
||||
/>
|
||||
) : null}
|
||||
{severity === 'error' && errorDetailsLink ? <ErrorDetailsLink link={String(errorDetailsLink)} /> : null}
|
||||
|
||||
@@ -6421,8 +6421,7 @@
|
||||
},
|
||||
"data-source-testing-status-page": {
|
||||
"error-more-details-link": "Click <2>here</2> to learn more about this error.",
|
||||
"success-more-details-links": "Next, you can start to visualize data by <2>building a dashboard</2>, or by querying data in the <5>Explore view</5>.",
|
||||
"success-more-details-links-extensions": "You can also explore data with the following extensions:"
|
||||
"success-more-details-links": "Next, you can start to visualize data by <2>building a dashboard</2>, or by querying data in the <5>Explore view</5>."
|
||||
},
|
||||
"data-sources": {
|
||||
"datasource-add-button": {
|
||||
|
||||
Reference in New Issue
Block a user