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
fix: refresh trash after permanently deleting an item
thecodrr858ff5840faf
diff --git a/apps/web/src/common/toasts.js b/apps/web/src/common/toasts.jsindex 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.jsindex 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} />}<Textdisplay={["none", "none", "flex"]}as="span"diff --git a/apps/web/src/components/list-container/index.js b/apps/web/src/components/list-container/index.jsindex 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}