Alerting: fix broken datasource link (#42468)

This commit is contained in:
Gilles De Mey 2021-11-29 17:57:58 +01:00 committed by GitHub
parent 5eb35606b9
commit db6b71a27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -115,7 +115,7 @@ export const RuleDetailsActionButtons: FC<Props> = ({ rule, rulesSource }) => {
<LinkButton
className={style.button}
size="xs"
key="dashboard"
key="panel"
variant="primary"
icon="apps"
target="__blank"
@ -172,6 +172,7 @@ export const RuleDetailsActionButtons: FC<Props> = ({ rule, rulesSource }) => {
if (isViewMode) {
rightButtons.push(
<ClipboardButton
key="copy"
onClipboardCopy={() => {
appEvents.emit(AppEvents.alertSuccess, ['URL copied!']);
}}

View File

@ -52,7 +52,7 @@ export function RuleListErrors(): ReactElement {
rulerRequestErrors.forEach(({ dataSource, error }) =>
result.push(
<>
Failed to load rules config from <a href={'datasources/edit/${dataSource.uid}'}>{dataSource.name}</a>:{' '}
Failed to load rules config from <a href={`datasources/edit/${dataSource.uid}`}>{dataSource.name}</a>:{' '}
{error.message || 'Unknown error.'}
</>
)
@ -77,7 +77,7 @@ export function RuleListErrors(): ReactElement {
{errors.length >= 2 && (
<Button
className={styles.moreButton}
variant="link"
fill="text"
icon="angle-right"
size="sm"
onClick={() => setExpanded(true)}