Unverified Commit 91743916 authored by zhangyongtian's avatar zhangyongtian Committed by GitHub

[Fix][web] Popup box cannot be closed (#2367)

* [Fix][admin] H2 SQL file exceptions and divide by zero exceptions * [Fix][admin] Remove designated tenants * [Fix][web] Popup box cannot be closed
parent bafa357c
......@@ -150,6 +150,7 @@ const TokenModalForm: React.FC<TokenModalFormProps & connect> = (props) => {
form.setFieldValue('tokenValue', tokenValue);
};
return (
<>
<ModalForm<SysToken>
......@@ -162,6 +163,10 @@ const TokenModalForm: React.FC<TokenModalFormProps & connect> = (props) => {
onValuesChange={handleValuesChange}
submitter={{ render: () => [...renderFooter()] }}
initialValues={{ ...value }}
modalProps={{
destroyOnClose: true,
onCancel: () => handleCancel(),
}}
>
<TokenForm expireType={expireType} buildToken={handleBuildToken} />
</ModalForm>
......
......@@ -147,6 +147,10 @@ const AlertGroupForm: React.FC<AlertGroupFormProps> = (props) => {
form={form}
initialValues={getFormData(formVals)}
submitter={{ render: () => [...renderFooter()] }}
modalProps={{
destroyOnClose: true,
onCancel: () => handleModalVisible(false),
}}
>
{renderAlertGroupForm()}
</ModalForm>
......
......@@ -109,6 +109,10 @@ const ProjectModal: React.FC<ProjectModalProps> = (props) => {
form={form}
submitter={{ render: () => [...renderFooter()] }}
initialValues={values}
modalProps={{
destroyOnClose: true,
onCancel: () => handleCancel(),
}}
>
<ProjectForm values={values} form={form} />
</ModalForm>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment