feat(client/import): clarify importing from zip (closes #7429)

This commit is contained in:
Elian Doran 2025-10-20 20:34:57 +03:00
parent 8fc7a20220
commit bcb2daf9b6
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View File

@ -164,6 +164,7 @@
"importIntoNote": "Import into note",
"chooseImportFile": "Choose import file",
"importDescription": "Content of the selected file(s) will be imported as child note(s) into",
"importZipRecommendation": "Upload a .zip file to seamlessly import an entire directory hierarchy at once.",
"options": "Options",
"safeImportTooltip": "Trilium <code>.zip</code> export files can contain executable scripts which may contain harmful behavior. Safe import will deactivate automatic execution of all imported scripts. Uncheck \"Safe import\" only if the imported archive is supposed to contain executable scripts and you completely trust the contents of the import file.",
"safeImport": "Safe import",

View File

@ -58,7 +58,12 @@ export default function ImportDialog() {
footer={<Button text={t("import.import")} primary disabled={!files} />}
show={shown}
>
<FormGroup name="files" label={t("import.chooseImportFile")} description={<>{t("import.importDescription")} <strong>{ noteTitle }</strong></>}>
<FormGroup name="files" label={t("import.chooseImportFile")} description={
<>
{t("import.importDescription")} <strong>{ noteTitle }</strong>.<br />
{t("import.importZipRecommendation")}
</>
}>
<FormFileUpload multiple onChange={setFiles} />
</FormGroup>