Skip to content

Build your personal knowledge base with Trilium Notes

refactor(client): remove the ribbon's info tab

Elian Dorane4d62a19d56b
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index eff1970730..35af67769f 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1373,10 +1373,6 @@
"archived": "Archived",
"search": "Search"
},
- "note_properties": {
- "this_note_was_originally_taken_from": "This note was originally taken from:",
- "info": "Info"
- },
"promoted_attributes": {
"promoted_attributes": "Promoted Attributes",
"create_attribute": "Create a new attribute",
diff --git a/apps/client/src/widgets/ribbon/NotePropertiesTab.tsx b/apps/client/src/widgets/ribbon/NotePropertiesTab.tsx
deleted file mode 100644
index 9dc1574c72..0000000000
--- a/apps/client/src/widgets/ribbon/NotePropertiesTab.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { t } from "../../services/i18n";
-import { useNoteLabel } from "../react/hooks";
-import { TabContext } from "./ribbon-interface";
-
-/**
- * TODO: figure out better name or conceptualize better.
- */
-export default function NotePropertiesTab({ note }: TabContext) {
- const [ pageUrl ] = useNoteLabel(note, "pageUrl");
-
- return (
- <div className="note-properties-widget" style={{ padding: "12px", color: "var(--muted-text-color)" }}>
- { pageUrl && (
- <div style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
- {t("note_properties.this_note_was_originally_taken_from")} <a href={pageUrl} class="page-url external">{pageUrl}</a>
- </div>
- )}
- </div>
- )
-}
diff --git a/apps/client/src/widgets/ribbon/RibbonDefinition.ts b/apps/client/src/widgets/ribbon/RibbonDefinition.ts
index 39b6e0eb8b..a297cb77b5 100644
--- a/apps/client/src/widgets/ribbon/RibbonDefinition.ts
+++ b/apps/client/src/widgets/ribbon/RibbonDefinition.ts
@@ -1,16 +1,8 @@
import { t } from "../../services/i18n";
import ImagePropertiesTab from "./ImagePropertiesTab";
-import NotePropertiesTab from "./NotePropertiesTab";
import { TabConfiguration } from "./ribbon-interface";
export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [
- {
- title: t("note_properties.info"),
- icon: "bx bx-info-square",
- content: NotePropertiesTab,
- show: ({ note }) => !!note?.getLabelValue("pageUrl"),
- activate: true
- },
{
title: t("image_properties.title"),
icon: "bx bx-image",