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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>