diff --git a/client/src/components/profile/InstrumentActivity.vue b/client/src/components/profile/InstrumentActivity.vue
index 5fd31ee5..640b9fd4 100644
--- a/client/src/components/profile/InstrumentActivity.vue
+++ b/client/src/components/profile/InstrumentActivity.vue
@@ -4,14 +4,12 @@
{{instrument.title}}
@@ -40,9 +38,12 @@
return !this.instrument.bookmarks.length
},
notes() {
- return this.instrument.bookmarks
+ return this.applyFilter('notes') ? this.instrument.bookmarks
.filter(b => b.note)
- .map(b => b.note);
+ .map(b => b.note) : [];
+ },
+ bookmarks() {
+ return this.applyFilter('bookmarks') ? this.instrument.bookmarks : [];
},
type() {
if (this.instrument.type === 'LANGUAGE_COMMUNICATION') {
diff --git a/client/src/components/profile/ModuleActivity.vue b/client/src/components/profile/ModuleActivity.vue
index 5972f9cd..b65a77c5 100644
--- a/client/src/components/profile/ModuleActivity.vue
+++ b/client/src/components/profile/ModuleActivity.vue
@@ -4,35 +4,31 @@
{{module.metaTitle}} - {{module.title}}
{{submission.text}}
{{answer.survey.title}}
{{bookmark.chapter.description}}
{{note.text}}
@@ -64,11 +60,23 @@
this.module.bookmark)
},
notes() {
- return this.module.myChapterBookmarks
+ return this.applyFilter('notes') ? this.module.myChapterBookmarks
.concat(this.module.myContentBookmarks)
.concat([this.module.bookmark ? this.module.bookmark : {}])
.filter(b => b.note)
- .map(b => b.note);
+ .map(b => b.note) : [];
+ },
+ submissions() {
+ return this.applyFilter('assignments') ? this.module.mySubmissions : [];
+ },
+ answers() {
+ return this.applyFilter('surveys') ? this.module.myAnswers : [];
+ },
+ contentBookmarks() {
+ return this.applyFilter('bookmarks') ? this.module.myContentBookmarks : [];
+ },
+ chapterBookmarks() {
+ return this.applyFilter('bookmarks') ? this.module.myChapterBookmarks : [];
}
},
methods: {