Skip to content

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

minor changes

thecodrra5eea205afd0
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
index 534c6d07f..3f8287ab8 100644
--- a/apps/web/src/app.css
+++ b/apps/web/src/app.css
@@ -1,4 +1,4 @@
-* {
+.unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index ddfade0f2..8589d9d8a 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -89,7 +89,7 @@ export default class Editor extends React.Component {
ev.removeListener("onClearNote", this.onClearNote.bind(this));
}
- onNewNote(showSnack = true, cb = null) {
+ onNewNote(show = true, cb = null) {
clearTimeout(this.timeout);
this.saveNote().then(() => {
this.titleRef.value = "";
@@ -98,7 +98,7 @@ export default class Editor extends React.Component {
this.titleRef.focus();
this.quill.setText("\n");
cb && cb();
- if (showSnack) {
+ if (show) {
showSnack("Let's start writing!", Icon.Edit2);
}
});
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index fb5f7aa2d..83c3b7183 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -48,7 +48,7 @@ const menuItems = note => [
).then(res => {
if (res) {
ev.emit("onClearNote", note.dateCreated);
- db.deleteNotes([note])
+ db.deleteNotes(note)
.then(
//TODO implement undo
() => {
diff --git a/apps/web/src/components/search/index.js b/apps/web/src/components/search/index.js
index 90960bdc8..0d8bf5f0b 100644
--- a/apps/web/src/components/search/index.js
+++ b/apps/web/src/components/search/index.js
@@ -16,6 +16,7 @@ const Search = props => (
<Input
id="searchInput"
variant="search"
+ name="search"
placeholder={props.placeholder}
onChange={props.onChange}
my={2}
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index cb2d68ce6..c12b7bce5 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -6991,7 +6991,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
"notes-core@https://github.com/thecodrr/notes-core.git":
version "0.3.0"
- resolved "https://github.com/thecodrr/notes-core.git#4535b867bfd9ab5c8e0d4c960050b1d8747b3340"
+ resolved "https://github.com/thecodrr/notes-core.git#5edc73b089e3b0fef585bf877f62feb4d49e2ff9"
dependencies:
fuzzysearch "^1.0.3"
transfun "^1.0.2"