diff --git a/resources/assets/js/components/StoryCompose.vue b/resources/assets/js/components/StoryCompose.vue
index b196c56b..ba6a35f7 100644
--- a/resources/assets/js/components/StoryCompose.vue
+++ b/resources/assets/js/components/StoryCompose.vue
@@ -165,11 +165,21 @@
{{story.created_ago}} ago
+
+
+
Viewed By
+
+

+
viewer.username
+
+
@@ -256,7 +266,11 @@
this.mediaWatcher();
axios.get('/api/stories/v0/fetch/' + this.profileId)
.then(res => {
- this.stories = res.data;
+ this.stories = res.data.map(s => {
+ s.showViewers = false;
+ s.viewers = [];
+ return s;
+ });
this.loaded = true;
});
},
@@ -397,6 +411,10 @@
viewMyStory() {
window.location.href = '/i/my/story';
+ },
+
+ toggleShowViewers(index) {
+ this.stories[index].showViewers = this.stories[index].showViewers ? false : true;
}
}
}