diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index d1ba6d245a..f8779d69ed 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -42,6 +42,7 @@ interface Props { firstRow?: boolean lastRow?: boolean closeAfterSave?: boolean + newRecordHeader?: string } const props = defineProps() @@ -496,7 +497,9 @@ export default { {{ displayValue }} -
New Record
+
+ {{ props.newRecordHeader ?? $t('activity.newRecord') }} +
{ :state="newRowState" use-meta-fields :close-after-save="isExpandedFormCloseAfterSave" + :new-record-header=" + isExpandedFormCloseAfterSave + ? $t('activity.tableNameCreateNewRecord', { + tableName: relatedTableMeta?.title, + }) + : undefined + " /> diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json index 184dddc8de..88f860285d 100644 --- a/packages/nc-gui/lang/en.json +++ b/packages/nc-gui/lang/en.json @@ -795,6 +795,7 @@ "linkRecord": "Link record", "addNewRecord": "Add new record", "newRecord": "New record", + "tableNameCreateNewRecord": "{tableName}: Create new record", "useConnectionUrl": "Use Connection URL", "toggleCommentsDraw": "Toggle comments draw", "expandRecord": "Expand Record",