Skip to content

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

feat: add toast for notebook edit

thecodrr068c969a3341
diff --git a/apps/web/src/components/dialogs/add-notebook-dialog.js b/apps/web/src/components/dialogs/add-notebook-dialog.js
index 78bf08c13..b5eb66cb6 100644
--- a/apps/web/src/components/dialogs/add-notebook-dialog.js
+++ b/apps/web/src/components/dialogs/add-notebook-dialog.js
@@ -5,6 +5,7 @@ import * as Icon from "../icons";
import Dialog, { showDialog } from "./dialog";
import { store } from "../../stores/notebook-store";
import { qclone } from "qclone";
+import { showToast } from "../../utils/toast";
class AddNotebookDialog extends React.Component {
MAX_AVAILABLE_HEIGHT = window.innerHeight * 0.3;
@@ -185,7 +186,8 @@ export function showEditNoteDialog(notebook) {
edit={true}
onDone={async (nb) => {
await store.add(nb);
- perform(false);
+ showToast("success", "Notebook edited successfully!");
+ perform(true);
}}
close={() => {
perform(false);