Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(attributes): trim the detail popup's descriptions
Elian Doranfff30c6dcf6a
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 8e86f3a352..b92a46d0e6 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -528,13 +528,12 @@"target_note": "Target note","promoted_title": "Shown as an editable field on every note that has this attribute.","promoted": "Promoted",- "promoted_alias_title": "Shown on the promoted field in place of the attribute's own name.",+ "promoted_alias_title": "Name shown on the promoted field.","promoted_alias": "Alias","multiplicity_title": "Lets a note carry this attribute more than once.","multiplicity": "Multiple values","single_value": "Single value","multi_value": "Multi value",- "label_type_title": "Decides which kind of field the value is entered in.","label_type": "Type","text": "Text","textarea": "Multi-line Text",@@ -544,7 +543,7 @@"date_time": "Date & Time","time": "Time","url": "URL",- "precision_title": "How many decimal places the value can be entered with.",+ "precision_title": "Max number of decimal places.","precision": "Precision","digits": "digits","inverse_relation_title": "The relation pointing back the other way, such as Son for Father. Optional.",diff --git a/apps/client/src/widgets/attribute_widgets/attribute_detail.tsx b/apps/client/src/widgets/attribute_widgets/attribute_detail.tsxindex d398356a74..a1f9e696a0 100644--- a/apps/client/src/widgets/attribute_widgets/attribute_detail.tsx+++ b/apps/client/src/widgets/attribute_widgets/attribute_detail.tsx@@ -434,12 +434,10 @@ function AttributeForm({ opts, attrType, currentNoteId, onCancel, onAttributesCh</OptionsRow>)}+ {/* No description: the values name themselves, and what they do to the field is plain+ enough once one is picked. */}{attrType === "label-definition" && (- <OptionsRow- name="attr-label-type"- label={t("attribute_detail.label_type")}- description={t("attribute_detail.label_type_title")}- >+ <OptionsRow name="attr-label-type" label={t("attribute_detail.label_type")}><FormSelectclassName="attr-input-label-type"values={LABEL_TYPES}