Skip to content

Added variables to data query #1470

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
merged 8 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fix label and remove del button
  • Loading branch information
Imiss-U1025 committed Jan 29, 2025
commit e43aba83a19cb955f03ba2d022ef2b9e5d294bb9
10 changes: 6 additions & 4 deletions client/packages/lowcoder-design/src/components/keyValueList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ export const KeyValueList = (props: {
{props.list.map((item, index) => (
<KeyValueListItem key={index /* FIXME: find a proper key instead of `index` */}>
{item}
<DelIcon
onClick={() => props.list.length > 1 && props.onDelete(item, index)}
$forbidden={props.list.length === 1}
/>
{!props.isStatic &&
<DelIcon
onClick={() => props.list.length > 1 && props.onDelete(item, index)}
$forbidden={props.list.length === 1}
/>
}
</KeyValueListItem>
))}
{!props.isStatic &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ExecuteQueryPropertyView = ({

const getVariableOptions = useCallback((editorState?: EditorState) => {
return comp.children.queryVariables.propertyView({
label: trans("eventHandler.queryParams"),
label: trans("eventHandler.queryVariables"),
layout: "vertical",
isStatic: true,
keyFixed: true,
Expand Down
1 change: 1 addition & 0 deletions client/packages/lowcoder/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export const en = {
"moduleEvent": "Module Event",
"goToApp": "Go to an other App",
"queryParams": "Query Parameters",
"queryVariables": "Query Variables",
"hashParams": "Hash Parameters",
"showNotification": "Show a Notification",
"text": "Text",
Expand Down
Loading