Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: refresh trash after permanently deleting an item

thecodrr858ff5840faf
diff --git a/apps/web/src/common/toasts.js b/apps/web/src/common/toasts.js
index 75599c861..b689160b3 100644
--- a/apps/web/src/common/toasts.js
+++ b/apps/web/src/common/toasts.js
@@ -60,6 +60,7 @@ async function showPermanentDeleteToast(item) {
const messageText = `${noun} permanently deleted!`;
const timeoutId = setTimeout(() => {
trashstore.delete(item.id, true);
+ trashstore.refresh();
}, 5000);
const undoAction = async () => {
toast.hide();
diff --git a/apps/web/src/components/button/index.js b/apps/web/src/components/button/index.js
index 6dec52748..d9240cf98 100644
--- a/apps/web/src/components/button/index.js
+++ b/apps/web/src/components/button/index.js
@@ -33,7 +33,7 @@ function Button(props) {
}}
onClick={props.onClick}
>
- {props.Icon && <props.Icon color="static" size={24} />}
+ {props.Icon && <props.Icon color="static" size={16} />}
<Text
display={["none", "none", "flex"]}
as="span"
diff --git a/apps/web/src/components/list-container/index.js b/apps/web/src/components/list-container/index.js
index 6e7c56aa5..3edfc2054 100644
--- a/apps/web/src/components/list-container/index.js
+++ b/apps/web/src/components/list-container/index.js
@@ -87,6 +87,7 @@ function ListContainer(props) {
)}
{props.button && (
<Button
+ variant="primary"
testId={`${props.type}-action-button`}
Icon={props.button.icon || Icon.Plus}
content={props.button.content}