Skip to content

Responsive layout: Table column delete gives error #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ class ResponsiveLayoutImplComp extends ResponsiveLayoutBaseComp implements ICont
},
} as CompAction;
}
if (value.type === "delete" && columns.length <= 1) {
const { path } = action;
if (value.type === "delete" && path[0] === 'columns' && columns.length <= 1) {
messageInstance.warning(trans("responsiveLayout.atLeastOneColumnError"));
// at least one column
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,39 +176,6 @@ function CreateModal(props: CreateModalProp) {
</div>
);
})}
{/* <Form.Item
name="clientId"
label="Client ID"
rules={[{ required: true }]}
>
<Input
placeholder={trans("idSource.formPlaceholder", {
label: 'Client ID',
})}
autoComplete="off"
/>
</Form.Item>
<Form.Item
name="clientSecret"
label={
<PasswordLabel>
<span>{"Client secret"}:</span>
<CloseEyeIcon />
</PasswordLabel>
}
rules={[{
required: true,
message: trans("idSource.formPlaceholder", {
label: 'Client secret',
})
}]}
>
<Input
type="password"
placeholder={trans("idSource.encryptedServer")}
autoComplete="off"
/>
</Form.Item> */}
</FormStyled>
</CustomModalStyled>
);
Expand Down