diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e74bdba..a0c5f790 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Drawers with Forms are not closing by clicking outside of the drawer. Only by clicking Cancel or X ([1493](https://github.com/grafana/oncall/issues/1493)) - When the `DANGEROUS_WEBHOOKS_ENABLED` environment variable is set to true, it's possible now to create Outgoing Webhooks using URLs without a top-level domain ([1266](https://github.com/grafana/oncall/pull/1266)) - Updated wording when creating an integration ([1572](https://github.com/grafana/oncall/pull/1572)) diff --git a/grafana-plugin/src/components/ManualAlertGroup/ManualAlertGroup.tsx b/grafana-plugin/src/components/ManualAlertGroup/ManualAlertGroup.tsx index 2f7f58a5..274b84dd 100644 --- a/grafana-plugin/src/components/ManualAlertGroup/ManualAlertGroup.tsx +++ b/grafana-plugin/src/components/ManualAlertGroup/ManualAlertGroup.tsx @@ -51,7 +51,7 @@ const ManualAlertGroup: FC = (props) => { return ( <> - + { }, []); return ( - - Start Maintenance Mode - - } - onClose={onHide} - closeOnMaskClick - > +
- - - + + + +
diff --git a/grafana-plugin/src/containers/OutgoingWebhookForm/OutgoingWebhookForm.tsx b/grafana-plugin/src/containers/OutgoingWebhookForm/OutgoingWebhookForm.tsx index aa498cdd..74c8e94f 100644 --- a/grafana-plugin/src/containers/OutgoingWebhookForm/OutgoingWebhookForm.tsx +++ b/grafana-plugin/src/containers/OutgoingWebhookForm/OutgoingWebhookForm.tsx @@ -1,11 +1,10 @@ import React, { useCallback } from 'react'; -import { Button, Drawer } from '@grafana/ui'; +import { Button, Drawer, HorizontalGroup } from '@grafana/ui'; import cn from 'classnames/bind'; import { observer } from 'mobx-react'; import GForm from 'components/GForm/GForm'; -import Text from 'components/Text/Text'; import { WithPermissionControlTooltip } from 'containers/WithPermissionControl/WithPermissionControlTooltip'; import { OutgoingWebhook } from 'models/outgoing_webhook/outgoing_webhook.types'; import { useStore } from 'state/useStore'; @@ -47,21 +46,22 @@ const OutgoingWebhookForm = observer((props: OutgoingWebhookFormProps) => { return ( - {id === 'new' ? 'Create' : 'Edit'} Outgoing Webhook - - } + title={id === 'new' ? 'Create Outgoing Webhook' : 'Edit Outgoing Webhook'} onClose={onHide} - closeOnMaskClick + closeOnMaskClick={false} >
- - - + + + +
); diff --git a/grafana-plugin/src/containers/ScheduleForm/ScheduleForm.tsx b/grafana-plugin/src/containers/ScheduleForm/ScheduleForm.tsx index f43956df..ad663c44 100644 --- a/grafana-plugin/src/containers/ScheduleForm/ScheduleForm.tsx +++ b/grafana-plugin/src/containers/ScheduleForm/ScheduleForm.tsx @@ -1,11 +1,10 @@ import React, { useCallback, useMemo } from 'react'; -import { Button, Drawer, VerticalGroup } from '@grafana/ui'; +import { Button, Drawer, HorizontalGroup, VerticalGroup } from '@grafana/ui'; import cn from 'classnames/bind'; import { observer } from 'mobx-react'; import GForm from 'components/GForm/GForm'; -import Text from 'components/Text/Text'; import { WithPermissionControlTooltip } from 'containers/WithPermissionControl/WithPermissionControlTooltip'; import { Schedule, ScheduleType } from 'models/schedule/schedule.types'; import { useStore } from 'state/useStore'; @@ -66,22 +65,23 @@ const ScheduleForm = observer((props: ScheduleFormProps) => { return ( - {id === 'new' ? 'New' : 'Edit'} Schedule - - } + title={id === 'new' ? 'New Schedule' : 'Edit Schedule'} onClose={onHide} - closeOnMaskClick + closeOnMaskClick={false} >
- - - + + + +