Skip to content

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

fix: trash, warnings & note list refresh (#7)

Waqar Ahmed3601d158a96d
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 097170d6e..e7c08b0b3 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -109,7 +109,8 @@ function App() {
scrollbarWidth: "none",
//TODO: need to test this on webkit and internet explorer
"::-webkit-scrollbar": { width: 0, height: 0 },
- "-ms-overflow-style": "none"
+ msOverflowStyle: "none"
+ //"-ms-overflow-style": "none"
}}
bg={"shade"}
px={0}
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index bc38ebb9b..c15930ba9 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -154,6 +154,7 @@ export default class Editor extends React.Component {
clearTimeout(this.timeout);
this.timeout = setTimeout(async () => {
this.id = await this.saveNote();
+ ev.emit("refreshNotes");
}, 1000);
}
@@ -192,13 +193,8 @@ export default class Editor extends React.Component {
ref={ref => (this.quillRef = ref)}
modules={modules}
theme="snow"
- onChange={e => {
+ onChange={() => {
this.save();
-
- console.log(this.quill.getText());
- if (this.quill.getText().length < 20) {
- ev.emit("refreshNotes");
- }
}}
/>
</Flex>
diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.js
index e58f0e6e5..c171740a8 100644
--- a/apps/web/src/components/properties/index.js
+++ b/apps/web/src/components/properties/index.js
@@ -139,6 +139,7 @@ const Properties = props => {
justifyContent="center"
alignItems="center"
onClick={() => props.colorSelected && props.colorSelected(color)}
+ key={color.label}
>
<Icon.Circle
size={40}
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index e40276ace..e4f190091 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -33,7 +33,6 @@ function Home() {
function onRefreshNotes() {
let groups = db.notes.group(undefined, true);
setNotes(groups);
- console.log("refreshing notes");
}
onRefreshNotes();
ev.addListener("refreshNotes", onRefreshNotes);
diff --git a/apps/web/src/views/Trash.js b/apps/web/src/views/Trash.js
index 80215168d..1131023c6 100644
--- a/apps/web/src/views/Trash.js
+++ b/apps/web/src/views/Trash.js
@@ -48,7 +48,7 @@ function Trash() {
return (
<ListView
type="Trash"
- getItems={db.trash.al}
+ getItems={db.trash.all}
menu={{ menuItems, dropdownRefs }}
button={{
content: "Clear Trash",