+ {editedNotes ? (
+
+ {separateByCommas(editedNotes.map(editedNote => {
+ return (
+
+ {editedNote.isDeleted ? (
+ {`${editedNote.title} ${t("edited_notes.deleted")}`}
+ ) : (
+ <>
+ {editedNote.notePath ? : {editedNote.title} }
+ >
+ )}
+
+ )
+ }))}
+
+ ) : (
+
{t("edited_notes.no_edited_notes_found")}
+ )}
+
+ )
+}
diff --git a/apps/client/src/widgets/ribbon/Ribbon.tsx b/apps/client/src/widgets/ribbon/Ribbon.tsx
index e0bc25d9a..c043f84e3 100644
--- a/apps/client/src/widgets/ribbon/Ribbon.tsx
+++ b/apps/client/src/widgets/ribbon/Ribbon.tsx
@@ -11,6 +11,7 @@ import options from "../../services/options";
import { CommandNames } from "../../components/app_context";
import FNote from "../../entities/fnote";
import ScriptTab from "./ScriptTab";
+import EditedNotesTab from "./EditedNotesTab";
interface TitleContext {
note: FNote | null | undefined;
@@ -21,9 +22,9 @@ interface TabConfiguration {
icon: string;
// TODO: Mark as required after porting them all.
content?: (context: TabContext) => VNode;
- show?: (context: TitleContext) => boolean;
+ show?: (context: TitleContext) => boolean | null | undefined;
toggleCommand?: CommandNames;
- activate?: boolean;
+ activate?: boolean | ((context: TitleContext) => boolean);
/**
* By default the tab content will not be rendered unless the tab is active (i.e. selected by the user). Setting to `true` will ensure that the tab is rendered even when inactive, for cases where the tab needs to be accessible at all times (e.g. for the detached editor toolbar).
*/
@@ -44,7 +45,7 @@ const TAB_CONFIGURATION = numberObjectsInPlace