mirror of
https://github.com/usememos/memos.git
synced 2025-10-31 00:38:08 +08:00
fix: edit for comment
This commit is contained in:
parent
785c250f3c
commit
d76f988bb5
1 changed files with 7 additions and 5 deletions
|
|
@ -171,12 +171,14 @@ const MemoActionMenu = observer((props: Props) => {
|
||||||
</span>
|
</span>
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<Menu className="text-sm" size="sm" placement="bottom-end">
|
<Menu className="text-sm" size="sm" placement="bottom-end">
|
||||||
{!readonly && !isArchived && !isComment && (
|
{!readonly && !isArchived && (
|
||||||
<>
|
<>
|
||||||
<MenuItem onClick={handleTogglePinMemoBtnClick}>
|
{!isComment && (
|
||||||
{memo.pinned ? <BookmarkMinusIcon className="w-4 h-auto" /> : <BookmarkPlusIcon className="w-4 h-auto" />}
|
<MenuItem onClick={handleTogglePinMemoBtnClick}>
|
||||||
{memo.pinned ? t("common.unpin") : t("common.pin")}
|
{memo.pinned ? <BookmarkMinusIcon className="w-4 h-auto" /> : <BookmarkPlusIcon className="w-4 h-auto" />}
|
||||||
</MenuItem>
|
{memo.pinned ? t("common.unpin") : t("common.pin")}
|
||||||
|
</MenuItem>
|
||||||
|
)}
|
||||||
<MenuItem onClick={handleEditMemoClick}>
|
<MenuItem onClick={handleEditMemoClick}>
|
||||||
<Edit3Icon className="w-4 h-auto" />
|
<Edit3Icon className="w-4 h-auto" />
|
||||||
{t("common.edit")}
|
{t("common.edit")}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue