Skip to content

Commit e43aba8

Browse files
committed
Fix label and remove del button
1 parent 63faec2 commit e43aba8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

client/packages/lowcoder-design/src/components/keyValueList.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ export const KeyValueList = (props: {
8282
{props.list.map((item, index) => (
8383
<KeyValueListItem key={index /* FIXME: find a proper key instead of `index` */}>
8484
{item}
85-
<DelIcon
86-
onClick={() => props.list.length > 1 && props.onDelete(item, index)}
87-
$forbidden={props.list.length === 1}
88-
/>
85+
{!props.isStatic &&
86+
<DelIcon
87+
onClick={() => props.list.length > 1 && props.onDelete(item, index)}
88+
$forbidden={props.list.length === 1}
89+
/>
90+
}
8991
</KeyValueListItem>
9092
))}
9193
{!props.isStatic &&

client/packages/lowcoder/src/comps/controls/actionSelector/executeQueryAction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ExecuteQueryPropertyView = ({
5757

5858
const getVariableOptions = useCallback((editorState?: EditorState) => {
5959
return comp.children.queryVariables.propertyView({
60-
label: trans("eventHandler.queryParams"),
60+
label: trans("eventHandler.queryVariables"),
6161
layout: "vertical",
6262
isStatic: true,
6363
keyFixed: true,

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ export const en = {
277277
"moduleEvent": "Module Event",
278278
"goToApp": "Go to an other App",
279279
"queryParams": "Query Parameters",
280+
"queryVariables": "Query Variables",
280281
"hashParams": "Hash Parameters",
281282
"showNotification": "Show a Notification",
282283
"text": "Text",

0 commit comments

Comments
 (0)