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: #74
thecodrraa2fcb68768d
diff --git a/apps/web/src/common/selectionoptions.js b/apps/web/src/common/selectionoptions.jsindex 7dd9590ac..196c506b9 100644--- a/apps/web/src/common/selectionoptions.js+++ b/apps/web/src/common/selectionoptions.js@@ -5,6 +5,7 @@ import { store as nbStore } from "../stores/notebook-store";import { store as editorStore } from "../stores/editor-store";import { db } from "./index";import { showMoveNoteDialog } from "../components/dialogs/movenotedialog";+import { confirm } from "../components/dialogs/confirm";function createOption(icon, onClick) {return {@@ -21,6 +22,10 @@ function createOptions(options = []) {}const DeleteOption = createOption(Icon.Trash2, async function(state) {+ if (+ !(await confirm(Icon.Trash2, "Delete", "Are you sure you want to proceed?"))+ )+ return;const item = state.selectedItems[0];var isAnyNoteOpened = false;const editorState = editorStore.getState();diff --git a/apps/web/src/stores/tag-store.js b/apps/web/src/stores/tag-store.jsindex 7d8ff986d..abce60bbf 100644--- a/apps/web/src/stores/tag-store.js+++ b/apps/web/src/stores/tag-store.js@@ -1,6 +1,5 @@import createStore from "../common/store";import { db } from "../common";-import { showPasswordDialog } from "../components/dialogs/passworddialog";function tagStore(set, get) {return {diff --git a/apps/web/src/views/Tags.js b/apps/web/src/views/Tags.jsindex b7dd8cba6..57014c011 100644--- a/apps/web/src/views/Tags.js+++ b/apps/web/src/views/Tags.js@@ -2,7 +2,6 @@ import React, { useEffect } from "react";import { Flex, Text } from "rebass";import ListContainer from "../components/list-container";import ListItem from "../components/list-item";-import { db } from "../common";import { useStore as useNotesStore } from "../stores/note-store";import { useStore, store } from "../stores/tag-store";import TagsPlaceholder from "../components/placeholders/tags-placeholder";