mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Append appSubUrl to back button on channel form (#28282)
This commit is contained in:
parent
7ee8f91e17
commit
e36925b55a
@ -7,6 +7,8 @@ import { NotificationSettings } from './NotificationSettings';
|
|||||||
import { BasicSettings } from './BasicSettings';
|
import { BasicSettings } from './BasicSettings';
|
||||||
import { ChannelSettings } from './ChannelSettings';
|
import { ChannelSettings } from './ChannelSettings';
|
||||||
|
|
||||||
|
import config from 'app/core/config';
|
||||||
|
|
||||||
interface Props extends Omit<FormAPI<NotificationChannelDTO>, 'formState'> {
|
interface Props extends Omit<FormAPI<NotificationChannelDTO>, 'formState'> {
|
||||||
selectableChannels: Array<SelectableValue<string>>;
|
selectableChannels: Array<SelectableValue<string>>;
|
||||||
selectedChannel?: NotificationChannelType;
|
selectedChannel?: NotificationChannelType;
|
||||||
@ -102,7 +104,7 @@ export const NotificationChannelForm: FC<Props> = ({
|
|||||||
<Button type="button" variant="secondary" onClick={() => onTestChannel(getValues({ nest: true }))}>
|
<Button type="button" variant="secondary" onClick={() => onTestChannel(getValues({ nest: true }))}>
|
||||||
Test
|
Test
|
||||||
</Button>
|
</Button>
|
||||||
<a href="/alerting/notifications">
|
<a href={`${config.appSubUrl}/alerting/notifications`}>
|
||||||
<Button type="button" variant="secondary">
|
<Button type="button" variant="secondary">
|
||||||
Back
|
Back
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user