mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-24 14:08:45 +00:00
Make the modal not closable on outside click (#10748)
Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
parent
f54efc649b
commit
c50390da80
@ -227,6 +227,7 @@ const EditTestCaseModal: React.FC<EditTestCaseModalProps> = ({
|
||||
}}
|
||||
closable={false}
|
||||
confirmLoading={isLoadingOnSave}
|
||||
maskClosable={false}
|
||||
okText={t('label.submit')}
|
||||
open={visible}
|
||||
title={`${t('label.edit')} ${testCase?.name}`}
|
||||
|
||||
@ -680,6 +680,7 @@ const AuthMechanismForm: FC<Props> = ({
|
||||
destroyOnClose
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
maskClosable={false}
|
||||
okText={t('label.confirm')}
|
||||
title={t('message.are-you-sure')}
|
||||
visible={isConfirmationModalOpen}
|
||||
|
||||
@ -66,6 +66,7 @@ const AddPipeLineModal = ({
|
||||
{t('label.save')}
|
||||
</Button>,
|
||||
]}
|
||||
maskClosable={false}
|
||||
title={isUndefined(selectedPipelineId) ? 'Add Pipeline' : 'Edit Pipeline'}
|
||||
visible={showAddPipelineModal}
|
||||
onCancel={onModalCancel}>
|
||||
|
||||
@ -1692,6 +1692,7 @@ const EntityLineageComponent: FunctionComponent<EntityLineageProp> = ({
|
||||
<EntityLineageSidebar newAddedNode={newAddedNode} show={isEditMode} />
|
||||
{showDeleteModal && (
|
||||
<Modal
|
||||
maskClosable={false}
|
||||
okText={getLoadingStatusValue(
|
||||
t('label.confirm'),
|
||||
deletionState.loading,
|
||||
|
||||
@ -53,6 +53,7 @@ const LineageConfigModal: React.FC<LineageConfigModalProps> = ({
|
||||
|
||||
return (
|
||||
<Modal
|
||||
maskClosable={false}
|
||||
title={t('label.lineage-config')}
|
||||
visible={visible}
|
||||
onCancel={onCancel}
|
||||
|
||||
@ -49,6 +49,7 @@ export const AdvancedSearchModal: FunctionComponent<Props> = ({
|
||||
</div>
|
||||
</Space>
|
||||
}
|
||||
maskClosable={false}
|
||||
okText={t('label.submit')}
|
||||
open={visible}
|
||||
title={t('label.advanced-entity', {
|
||||
|
||||
@ -92,13 +92,13 @@ const GlobalSearchProvider: FC<Props> = ({ children }: Props) => {
|
||||
<Modal
|
||||
closable
|
||||
destroyOnClose
|
||||
maskClosable
|
||||
bodyStyle={{
|
||||
padding: '20px',
|
||||
height: searchValue ? '314px' : '85px',
|
||||
}}
|
||||
closeIcon={<></>}
|
||||
footer={null}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
transitionName=""
|
||||
width={650}
|
||||
|
||||
@ -76,6 +76,7 @@ const ExportGlossaryModal: FC<Props> = ({
|
||||
cancelText={t('label.cancel')}
|
||||
closable={false}
|
||||
data-testid="export-glossary-modal"
|
||||
maskClosable={false}
|
||||
okText={t('label.export')}
|
||||
open={isModalOpen}
|
||||
title={t('label.export-glossary-terms')}
|
||||
|
||||
@ -397,6 +397,7 @@ const GlossaryTermTab = ({
|
||||
closable={false}
|
||||
confirmLoading={isTableLoading}
|
||||
data-testid="confirmation-modal"
|
||||
maskClosable={false}
|
||||
okText={t('label.confirm')}
|
||||
open={isModalOpen}
|
||||
title={t('label.move-the-entity', {
|
||||
|
||||
@ -96,6 +96,7 @@ const AddAnnouncementModal: FC<Props> = ({
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
data-testid="add-announcement"
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
id: 'announcement-submit',
|
||||
form: 'announcement-form',
|
||||
|
||||
@ -76,6 +76,7 @@ const EditAnnouncementModal: FC<Props> = ({
|
||||
className="announcement-modal"
|
||||
closable={false}
|
||||
data-testid="edit-announcement"
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
form: 'announcement-form',
|
||||
type: 'primary',
|
||||
|
||||
@ -70,6 +70,7 @@ const ConfirmationModal = ({
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text
|
||||
|
||||
@ -40,6 +40,7 @@ const DeployIngestionLoaderModal = ({
|
||||
closable={false}
|
||||
data-testid="deploy-modal"
|
||||
footer={null}
|
||||
maskClosable={false}
|
||||
open={visible}>
|
||||
<div className="p-y-lg d-flex flex-col" data-testid="body-text">
|
||||
<div className={classNames('ingestion-content relative', className)}>
|
||||
|
||||
@ -70,6 +70,7 @@ const EntityDeleteModal = ({
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text data-testid="modal-header">
|
||||
|
||||
@ -65,6 +65,7 @@ const FormModal = ({
|
||||
</Button>
|
||||
</Space>
|
||||
}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text strong data-testid="header">
|
||||
|
||||
@ -60,6 +60,7 @@ const KillIngestionModal: FC<KillIngestionModalProps> = ({
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
data-testid="kill-modal"
|
||||
maskClosable={false}
|
||||
okText="Confirm"
|
||||
title={`${t('label.kill')} ${pipelinName} ?`}
|
||||
visible={isModalOpen}
|
||||
|
||||
@ -75,6 +75,7 @@ export const ModalWithMarkdownEditor: FunctionComponent<ModalWithMarkdownEditorP
|
||||
{isLoading ? <Loader size="small" type="white" /> : t('label.save')}
|
||||
</Button>,
|
||||
]}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={<Typography.Text data-testid="header">{header}</Typography.Text>}
|
||||
width="90%"
|
||||
|
||||
@ -123,6 +123,7 @@ const RelatedTermsModal = ({
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text strong data-testid="header">
|
||||
|
||||
@ -148,6 +148,7 @@ const ReviewerModal = ({
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text strong data-testid="header">
|
||||
|
||||
@ -31,7 +31,6 @@ const SchemaModal: FC<SchemaModalProp> = ({
|
||||
<Modal
|
||||
centered
|
||||
destroyOnClose
|
||||
maskClosable
|
||||
className={classNames('schema-modal', className)}
|
||||
closeIcon={
|
||||
<CloseIcon
|
||||
@ -41,6 +40,7 @@ const SchemaModal: FC<SchemaModalProp> = ({
|
||||
}
|
||||
data-testid="schema-modal"
|
||||
footer={null}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text strong data-testid="schema-modal-header">
|
||||
|
||||
@ -31,6 +31,7 @@ const TourEndModal = ({ onSave, visible }: TourEndModalProps) => {
|
||||
{t('label.explore-now')}
|
||||
</Button>
|
||||
}
|
||||
maskClosable={false}
|
||||
open={visible}>
|
||||
<Row className="text-center" gutter={[16, 16]}>
|
||||
<Col className="mt-4" span={24}>
|
||||
|
||||
@ -75,6 +75,7 @@ export const WhatsNewModal: FunctionComponent<WhatsNewModalProps> = ({
|
||||
}
|
||||
data-testid="whats-new-dialog"
|
||||
footer={null}
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text strong data-testid="whats-new-header">
|
||||
|
||||
@ -1340,6 +1340,7 @@ const TeamDetailsV1 = ({
|
||||
centered
|
||||
closable={false}
|
||||
confirmLoading={isModalLoading}
|
||||
maskClosable={false}
|
||||
okText={t('label.confirm')}
|
||||
open={!isUndefined(selectedEntity.record)}
|
||||
title={`${t('label.remove-entity', {
|
||||
|
||||
@ -192,6 +192,7 @@ const TeamHierarchy: FC<TeamHierarchyProps> = ({
|
||||
closable={false}
|
||||
confirmLoading={isTableLoading}
|
||||
data-testid="confirmation-modal"
|
||||
maskClosable={false}
|
||||
okText={t('label.confirm')}
|
||||
open={isModalOpen}
|
||||
title={t('label.move-the-entity', { entity: t('label.team') })}
|
||||
|
||||
@ -309,6 +309,7 @@ const UserListV1: FC<UserListV1Props> = ({
|
||||
className="reactive-modal"
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
maskClosable={false}
|
||||
okText={t('label.restore')}
|
||||
open={showReactiveModal}
|
||||
title={t('label.restore-entity', {
|
||||
|
||||
@ -42,6 +42,7 @@ const ChangePasswordForm: React.FC<ChangePasswordForm> = ({
|
||||
centered
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
form: 'change-password-form',
|
||||
type: 'primary',
|
||||
|
||||
@ -237,6 +237,7 @@ const DeleteWidgetModal = ({
|
||||
confirmLoading={isLoading}
|
||||
data-testid="delete-modal"
|
||||
footer={Footer()}
|
||||
maskClosable={false}
|
||||
okText={t('label.delete')}
|
||||
open={visible}
|
||||
title={`${t('label.delete')} ${entityName}`}
|
||||
|
||||
@ -61,6 +61,7 @@ const FollowersModal = ({
|
||||
centered
|
||||
destroyOnClose
|
||||
data-testid="modal-container"
|
||||
maskClosable={false}
|
||||
open={visible}
|
||||
title={
|
||||
<Typography.Text strong data-testid="header">
|
||||
|
||||
@ -255,6 +255,7 @@ const ManageButton: FC<Props> = ({
|
||||
}}
|
||||
className="reactive-modal"
|
||||
closable={false}
|
||||
maskClosable={false}
|
||||
okText={t('label.restore')}
|
||||
open={showReactiveModal}
|
||||
title={t('label.restore-entity', {
|
||||
|
||||
@ -42,6 +42,7 @@ const ReIndexAllModal = ({
|
||||
centered
|
||||
closable={false}
|
||||
confirmLoading={confirmLoading}
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
form: 're-index-form',
|
||||
type: 'primary',
|
||||
|
||||
@ -543,6 +543,7 @@ const PoliciesDetailPage = () => {
|
||||
centered
|
||||
closable={false}
|
||||
confirmLoading={isloadingOnSave}
|
||||
maskClosable={false}
|
||||
okText={t('label.confirm')}
|
||||
open={!isUndefined(selectedEntity.record)}
|
||||
title={`${t('label.remove-entity', {
|
||||
|
||||
@ -130,6 +130,7 @@ const AddAttributeModal: FC<Props> = ({
|
||||
closable={false}
|
||||
confirmLoading={isModalLoading}
|
||||
data-testid="modal-container"
|
||||
maskClosable={false}
|
||||
okText="Submit"
|
||||
open={isOpen}
|
||||
title={
|
||||
|
||||
@ -359,6 +359,7 @@ const RolesDetailPage = () => {
|
||||
centered
|
||||
closable={false}
|
||||
confirmLoading={isLoadingOnSave}
|
||||
maskClosable={false}
|
||||
okText={t('label.confirm')}
|
||||
open={!isUndefined(selectedEntity.record)}
|
||||
title={`${t('label.remove-entity', {
|
||||
|
||||
@ -49,6 +49,7 @@ const CommentModal: FC<CommentModalProps> = ({
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
data-testid="comment-modal"
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
disabled: !comment,
|
||||
className: 'ant-btn-primary-custom',
|
||||
|
||||
@ -104,6 +104,7 @@ const AddTeamForm: React.FC<AddTeamFormType> = ({
|
||||
centered
|
||||
closable={false}
|
||||
confirmLoading={isLoading}
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
form: 'add-team-form',
|
||||
type: 'primary',
|
||||
|
||||
@ -179,6 +179,7 @@ const AddUsersModalV1 = ({
|
||||
return (
|
||||
<Modal
|
||||
data-testid="modal-container"
|
||||
maskClosable={false}
|
||||
okButtonProps={{
|
||||
id: 'save-button',
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user