mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00

* Update basicsettings for datasource * Change aria-label for data-testid * Update more tests * Update betterer * Remove unnecessary data-testid * Put back aria label for some datasource selectors * Try to use data-testid with alerts * Update betterer
16 lines
520 B
TypeScript
16 lines
520 B
TypeScript
import React from 'react';
|
|
|
|
import { selectors as e2eSelectors } from '@grafana/e2e-selectors';
|
|
import { Alert } from '@grafana/ui';
|
|
|
|
export const readOnlyMessage =
|
|
'This data source was added by config and cannot be modified using the UI. Please contact your server admin to update this data source.';
|
|
|
|
export function DataSourceReadOnlyMessage() {
|
|
return (
|
|
<Alert data-testid={e2eSelectors.pages.DataSource.readOnly} severity="info" title="Provisioned data source">
|
|
{readOnlyMessage}
|
|
</Alert>
|
|
);
|
|
}
|