Alerting: Append appSubUrl to back button on channel form (#28282)

This commit is contained in:
Mikhail Snetkov
2020-10-15 18:30:06 +07:00
committed by GitHub
parent 7ee8f91e17
commit e36925b55a

View File

@@ -7,6 +7,8 @@ import { NotificationSettings } from './NotificationSettings';
import { BasicSettings } from './BasicSettings';
import { ChannelSettings } from './ChannelSettings';
import config from 'app/core/config';
interface Props extends Omit<FormAPI<NotificationChannelDTO>, 'formState'> {
selectableChannels: Array<SelectableValue<string>>;
selectedChannel?: NotificationChannelType;
@@ -102,7 +104,7 @@ export const NotificationChannelForm: FC<Props> = ({
<Button type="button" variant="secondary" onClick={() => onTestChannel(getValues({ nest: true }))}>
Test
</Button>
<a href="/alerting/notifications">
<a href={`${config.appSubUrl}/alerting/notifications`}>
<Button type="button" variant="secondary">
Back
</Button>