mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix links to dashboard settings (#33782)
This commit is contained in:
parent
3a1437fe9c
commit
0b3d757172
@ -68,7 +68,7 @@ export const RulesGroup: FC<Props> = React.memo(({ group, namespace }) => {
|
|||||||
const rulerRule = group.rules[0]?.rulerRule;
|
const rulerRule = group.rules[0]?.rulerRule;
|
||||||
const folderUID = rulerRule && isGrafanaRulerRule(rulerRule) && rulerRule.grafana_alert.namespace_uid;
|
const folderUID = rulerRule && isGrafanaRulerRule(rulerRule) && rulerRule.grafana_alert.namespace_uid;
|
||||||
if (folderUID) {
|
if (folderUID) {
|
||||||
const baseUrl = `dashboards/f/${folderUID}/${kbn.slugifyForUrl(namespace.name)}`;
|
const baseUrl = `/dashboards/f/${folderUID}/${kbn.slugifyForUrl(namespace.name)}`;
|
||||||
actionIcons.push(<ActionIcon key="edit" icon="pen" tooltip="edit" to={baseUrl + '/settings'} target="__blank" />);
|
actionIcons.push(<ActionIcon key="edit" icon="pen" tooltip="edit" to={baseUrl + '/settings'} target="__blank" />);
|
||||||
actionIcons.push(
|
actionIcons.push(
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
|
Loading…
Reference in New Issue
Block a user