diff --git a/client/src/components/profile/ModuleActivity.vue b/client/src/components/profile/ModuleActivity.vue
index 07ab1655..58d38c44 100644
--- a/client/src/components/profile/ModuleActivity.vue
+++ b/client/src/components/profile/ModuleActivity.vue
@@ -3,10 +3,11 @@
class="module-activity"
v-if="!empty"
>
-
+
{{ module.topic.title }}
- {{ module.metaTitle }} - {{ module.title }}
+ {{ module.title }}
+
@@ -47,11 +49,12 @@
- {{ note.text }}
+ {{ noteBookmark.note.text }}
@@ -73,11 +76,11 @@ export default {
computed: {
empty() {
return !(
- this.module.mySubmissions.length ||
- this.module.myAnswers.length ||
- this.module.myContentBookmarks.length ||
- this.module.myChapterBookmarks.length ||
- this.module.bookmark
+ this.notes.length ||
+ this.answers.length ||
+ this.submissions.length ||
+ this.contentBookmarks.length ||
+ this.chapterBookmarks.length
);
},
notes() {
@@ -86,7 +89,6 @@ export default {
.concat(this.module.myContentBookmarks)
.concat([this.module.bookmark ? this.module.bookmark : {}])
.filter((b) => b.note)
- .map((b) => b.note)
: [];
},
submissions() {
@@ -140,9 +142,7 @@ export default {
max-width: 320px;
}
- margin-bottom: 2 * $large-spacing;
-
- &__module-name {
+ &__topic-name {
@include regular-text;
margin-bottom: $small-spacing;
}
@@ -150,7 +150,10 @@ export default {
&__title {
@include heading-2;
}
-
+ &__meta-title {
+ @include regular-text;
+ margin-bottom: $small-spacing;
+ }
&__entry {
&:first-of-type {
border-top: 1px solid $color-silver;
diff --git a/client/src/pages/activity.vue b/client/src/pages/activity.vue
index e96bc9da..4700cf8b 100644
--- a/client/src/pages/activity.vue
+++ b/client/src/pages/activity.vue
@@ -42,14 +42,14 @@ export default {
update(data) {
return this.$getRidOfEdges(data).myActivity;
},
- pollInterval: 5000,
+ pollInterval: 15000,
},
instruments: {
query: MY_ACTIVITY_QUERY,
update(data) {
return this.$getRidOfEdges(data).myInstrumentActivity;
},
- pollInterval: 5000,
+ pollInterval: 15000,
},
},
diff --git a/server/users/schema/queries.py b/server/users/schema/queries.py
index cf0e44a0..8b33e18b 100644
--- a/server/users/schema/queries.py
+++ b/server/users/schema/queries.py
@@ -29,7 +29,7 @@ class UsersQuery(object):
return Module.objects.all()
def resolve_my_instrument_activity(self, info, **kwargs):
- return BasicKnowledge.objects.all()
+ return BasicKnowledge.objects.filter(instrumentbookmark__user=info.context.user)
class AllUsersQuery(object):