Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: edit for comment

Johnnyd76f988bb5d3
diff --git a/web/src/components/MemoActionMenu.tsx b/web/src/components/MemoActionMenu.tsx
index 0548e53b7..5d1affb85 100644
--- a/web/src/components/MemoActionMenu.tsx
+++ b/web/src/components/MemoActionMenu.tsx
@@ -171,12 +171,14 @@ const MemoActionMenu = observer((props: Props) => {
</span>
</MenuButton>
<Menu className="text-sm" size="sm" placement="bottom-end">
- {!readonly && !isArchived && !isComment && (
+ {!readonly && !isArchived && (
<>
- <MenuItem onClick={handleTogglePinMemoBtnClick}>
- {memo.pinned ? <BookmarkMinusIcon className="w-4 h-auto" /> : <BookmarkPlusIcon className="w-4 h-auto" />}
- {memo.pinned ? t("common.unpin") : t("common.pin")}
- </MenuItem>
+ {!isComment && (
+ <MenuItem onClick={handleTogglePinMemoBtnClick}>
+ {memo.pinned ? <BookmarkMinusIcon className="w-4 h-auto" /> : <BookmarkPlusIcon className="w-4 h-auto" />}
+ {memo.pinned ? t("common.unpin") : t("common.pin")}
+ </MenuItem>
+ )}
<MenuItem onClick={handleEditMemoClick}>
<Edit3Icon className="w-4 h-auto" />
{t("common.edit")}