diff --git a/public/locales/de.json b/public/locales/de.json index b9b4185b..afbbc81b 100644 --- a/public/locales/de.json +++ b/public/locales/de.json @@ -192,7 +192,8 @@ "field_data": "Felddaten" }, "messages": { - "list_selected": "Liste erfolgreich ausgewählt" + "list_selected": "Liste erfolgreich ausgewählt", + "list_empty": "Liste ausgewählt. Bitte wählen Sie Felder innerhalb der Liste aus." }, "errors": { "select_pagination": "Bitte wählen Sie einen Paginierungstyp aus.", diff --git a/public/locales/en.json b/public/locales/en.json index bd8acce3..b3f44225 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -193,7 +193,8 @@ "field_data": "Field Data" }, "messages": { - "list_selected": "List Selected Successfully" + "list_selected": "List Selected Successfully", + "list_empty": "List selected. Please select fields inside the list." }, "errors": { "select_pagination": "Please select a pagination type.", diff --git a/public/locales/es.json b/public/locales/es.json index 94210880..08d1ef98 100644 --- a/public/locales/es.json +++ b/public/locales/es.json @@ -193,7 +193,8 @@ "field_data": "Datos del Campo" }, "messages": { - "list_selected": "Lista seleccionada exitosamente" + "list_selected": "Lista seleccionada exitosamente", + "list_empty": "Lista seleccionada. Seleccione los campos dentro de la lista." }, "errors": { "select_pagination": "Por favor seleccione un tipo de paginación.", diff --git a/public/locales/ja.json b/public/locales/ja.json index 0bcba967..521a7f70 100644 --- a/public/locales/ja.json +++ b/public/locales/ja.json @@ -193,7 +193,8 @@ "field_data": "フィールドデータ" }, "messages": { - "list_selected": "リストが正常に選択されました" + "list_selected": "リストが正常に選択されました", + "list_empty": "リストが選択されました。リスト内のフィールドを選択してください。" }, "errors": { "select_pagination": "ページネーションタイプを選択してください。", diff --git a/public/locales/zh.json b/public/locales/zh.json index a19fe439..076f449a 100644 --- a/public/locales/zh.json +++ b/public/locales/zh.json @@ -193,7 +193,8 @@ "field_data": "字段数据" }, "messages": { - "list_selected": "列表选择成功" + "list_selected": "列表选择成功", + "list_empty": "已选择列表。请选择列表内的字段。" }, "errors": { "select_pagination": "请选择分页类型。", diff --git a/src/components/recorder/RightSidePanel.tsx b/src/components/recorder/RightSidePanel.tsx index c5478254..17386e9d 100644 --- a/src/components/recorder/RightSidePanel.tsx +++ b/src/components/recorder/RightSidePanel.tsx @@ -747,71 +747,64 @@ export const RightSidePanel: React.FC = ({ onFinishCapture )} {step.type === 'list' && ( - <> - {t('right_panel.messages.list_selected')} - {Object.entries(step.fields).map(([key, field]) => ( - - handleTextLabelChange(field.id, e.target.value, step.id, key)} - fullWidth - margin="normal" - InputProps={{ - readOnly: confirmedListTextFields[field.id]?.[key], - startAdornment: ( - - - - ) - }} - /> - - - - ) - }} - - /> - {!confirmedListTextFields[step.id]?.[key] ? ( - - - - - ) : !isCaptureListConfirmed && ( - - - - )} - - ))} - + Object.entries(step.fields).length === 0 ? ( + {t('right_panel.messages.list_empty')} + ) : ( + <> + {t('right_panel.messages.list_selected')} + {Object.entries(step.fields).map(([key, field]) => ( + + handleTextLabelChange(field.id, e.target.value, step.id, key)} + fullWidth + margin="normal" + InputProps={{ + readOnly: confirmedListTextFields[field.id]?.[key], + startAdornment: ( + + + + ) + }} + /> + + + + ) + }} + /> + {!confirmedListTextFields[step.id]?.[key] && ( + + + + + )} + + ))} + + ) )} ))}