diff --git a/client/src/components/Chapter.vue b/client/src/components/Chapter.vue index 925b2d4e..14366295 100644 --- a/client/src/components/Chapter.vue +++ b/client/src/components/Chapter.vue @@ -4,8 +4,11 @@

{{chapter.description}} @@ -109,7 +112,16 @@ } } }); - } + }, + addNote(id) { + this.$store.dispatch('addNote', { + content: id, + parent: this.chapter.id + }); + }, + editNote() { + this.$store.dispatch('editNote', this.chapter.bookmark.note); + }, }, apollo: { diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue index 69513816..6e9b5534 100644 --- a/client/src/components/modules/Module.vue +++ b/client/src/components/modules/Module.vue @@ -9,7 +9,10 @@

@@ -168,7 +171,16 @@ } } }); - } + }, + addNote(id) { + this.$store.dispatch('addNote', { + content: id, + parent: this.module.id + }); + }, + editNote() { + this.$store.dispatch('editNote', this.module.bookmark.note); + }, }, apollo: { diff --git a/client/src/components/notes/NewNoteWizard.vue b/client/src/components/notes/NewNoteWizard.vue index eca6123b..70f6be8c 100644 --- a/client/src/components/notes/NewNoteWizard.vue +++ b/client/src/components/notes/NewNoteWizard.vue @@ -5,10 +5,8 @@