mirror of https://github.com/usememos/memos.git
fixed archived/restored succesfully button (not undo successful yet)
This commit is contained in:
parent
21baf2a55a
commit
6aaad51546
|
|
@ -115,11 +115,11 @@ const MemoActionMenu = observer((props: Props) => {
|
||||||
tToast,
|
tToast,
|
||||||
) => (
|
) => (
|
||||||
//div container
|
//div container
|
||||||
<div className="flex items-center gap-3 ml-auto bg-white dark:bg-gray-800 p-3 rounded-xl shadow">
|
<div className="flex items-center gap-3 ml-auto bg-primary dark:bg-primary p-3 rounded-xl shadow">
|
||||||
<span>{message}</span>
|
<span className="text-background">{message}</span>
|
||||||
<button
|
<button
|
||||||
//attributes
|
//attributes
|
||||||
className="ml-auto text-blue-600 hover:underline"
|
className="ml-auto text-background italic hover:underline"
|
||||||
//onClick attribute is using async only so we can use await
|
//onClick attribute is using async only so we can use await
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
//must wait for this promise returned by updateMemo to be fulfileld before continuing
|
//must wait for this promise returned by updateMemo to be fulfileld before continuing
|
||||||
|
|
@ -135,7 +135,7 @@ const MemoActionMenu = observer((props: Props) => {
|
||||||
memoUpdatedCallback();
|
memoUpdatedCallback();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("common.undo")}
|
({t("common.undo")})
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@
|
||||||
"title": "Title",
|
"title": "Title",
|
||||||
"tree-mode": "Tree mode",
|
"tree-mode": "Tree mode",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
|
"undo": "Undo",
|
||||||
"unpin": "Unpin",
|
"unpin": "Unpin",
|
||||||
"update": "Update",
|
"update": "Update",
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue