A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: show timeago with sessions
thecodrrd66c73bd78a6
diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.jsindex cdef05f13..68e60b21b 100644--- a/apps/web/src/components/properties/index.js+++ b/apps/web/src/components/properties/index.js@@ -14,6 +14,7 @@ import ScrollContainer from "../scroll-container";import { downloadAttachment } from "../../common/attachments";import { formatDate } from "notes-core/utils/date";import Vault from "../../common/vault";+import TimeAgo from "../time-ago";const tools = [{ key: "pinned", icon: Icon.Pin, label: "Pin" },@@ -277,7 +278,10 @@ function Properties({ noteId }) {</Card>)}{attachments.length > 0 && (- <Card title="Attachments">+ <Card+ title="Attachments"+ subtitle={`${attachments.length} attachments`}+ >{attachments.map((attachment) => {const attachmentStatus =attachmentsStatus[attachment.metadata.hash];@@ -436,7 +440,14 @@ function Properties({ noteId }) {}}><Text variant={"body"}>{label}</Text>- {session.locked && <Icon.Lock size={14} />}+ <Flex sx={{ fontSize: "subBody", color: "fontTertiary" }}>+ {session.locked && <Icon.Lock size={14} />}+ <TimeAgo+ live+ datetime={session.dateModified}+ locale={"en_short"}+ />+ </Flex></Flex>);})}