mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: fix broken datasource link (#42468)
This commit is contained in:
parent
5eb35606b9
commit
db6b71a27b
@ -115,7 +115,7 @@ export const RuleDetailsActionButtons: FC<Props> = ({ rule, rulesSource }) => {
|
|||||||
<LinkButton
|
<LinkButton
|
||||||
className={style.button}
|
className={style.button}
|
||||||
size="xs"
|
size="xs"
|
||||||
key="dashboard"
|
key="panel"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
icon="apps"
|
icon="apps"
|
||||||
target="__blank"
|
target="__blank"
|
||||||
@ -172,6 +172,7 @@ export const RuleDetailsActionButtons: FC<Props> = ({ rule, rulesSource }) => {
|
|||||||
if (isViewMode) {
|
if (isViewMode) {
|
||||||
rightButtons.push(
|
rightButtons.push(
|
||||||
<ClipboardButton
|
<ClipboardButton
|
||||||
|
key="copy"
|
||||||
onClipboardCopy={() => {
|
onClipboardCopy={() => {
|
||||||
appEvents.emit(AppEvents.alertSuccess, ['URL copied!']);
|
appEvents.emit(AppEvents.alertSuccess, ['URL copied!']);
|
||||||
}}
|
}}
|
||||||
|
@ -52,7 +52,7 @@ export function RuleListErrors(): ReactElement {
|
|||||||
rulerRequestErrors.forEach(({ dataSource, error }) =>
|
rulerRequestErrors.forEach(({ dataSource, error }) =>
|
||||||
result.push(
|
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.'}
|
{error.message || 'Unknown error.'}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
@ -77,7 +77,7 @@ export function RuleListErrors(): ReactElement {
|
|||||||
{errors.length >= 2 && (
|
{errors.length >= 2 && (
|
||||||
<Button
|
<Button
|
||||||
className={styles.moreButton}
|
className={styles.moreButton}
|
||||||
variant="link"
|
fill="text"
|
||||||
icon="angle-right"
|
icon="angle-right"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setExpanded(true)}
|
onClick={() => setExpanded(true)}
|
||||||
|
Loading…
Reference in New Issue
Block a user