mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Change order of buttons bellow payload data editor (#67830)
Change order of buttons bellow payload data editor
This commit is contained in:
parent
764f87b485
commit
d10ee8263c
@ -99,9 +99,17 @@ export function PayloadEditor({
|
||||
/>
|
||||
|
||||
<div className={styles.buttonsWrapper}>
|
||||
<Button onClick={onReset} className={styles.button} icon="arrow-up" type="button" variant="secondary">
|
||||
{RESET_TO_DEFAULT}
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
className={styles.button}
|
||||
icon="bell"
|
||||
disabled={errorInPayloadJson}
|
||||
onClick={onOpenAlertSelectorModal}
|
||||
>
|
||||
Select alert instances
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
onClick={onOpenEditAlertModal}
|
||||
className={styles.button}
|
||||
@ -110,17 +118,10 @@ export function PayloadEditor({
|
||||
variant="secondary"
|
||||
disabled={errorInPayloadJson}
|
||||
>
|
||||
Add alert data
|
||||
Add custom alerts
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
icon="bell"
|
||||
disabled={errorInPayloadJson}
|
||||
onClick={onOpenAlertSelectorModal}
|
||||
>
|
||||
Choose alert instances
|
||||
<Button onClick={onReset} className={styles.button} icon="arrow-up" type="button" variant="destructive">
|
||||
{RESET_TO_DEFAULT}
|
||||
</Button>
|
||||
|
||||
{payloadFormatError !== null && (
|
||||
|
@ -85,7 +85,7 @@ export const GenerateAlertDataModal = ({ isOpen, onDismiss, onAccept }: Props) =
|
||||
];
|
||||
|
||||
return (
|
||||
<Modal onDismiss={onDismiss} isOpen={isOpen} title={'Add alert data'}>
|
||||
<Modal onDismiss={onDismiss} isOpen={isOpen} title={'Add custom alerts'}>
|
||||
<FormProvider {...formMethods}>
|
||||
<form
|
||||
onSubmit={(e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user