|
|
@@ -20,8 +20,8 @@ main.view--chat
|
|
20
|
20
|
ul(v-for="reveal in grouping.revealed[profile.id.value]")
|
|
21
|
21
|
li {{ reveal.description }} : {{ profile._profile[reveal.description] }}
|
|
22
|
22
|
p they revealed:
|
|
23
|
|
- span(v-if="grouping.revealed[grouping.profile.profile_id]")
|
|
24
|
|
- ul(v-for="reveal in grouping.revealed[grouping.profile.profile_id]")
|
|
|
23
|
+ span(v-if="theyRevealed")
|
|
|
24
|
+ ul(v-for="reveal in theyRevealed")
|
|
25
|
25
|
li {{ reveal.description }} : {{ grouping.profile[reveal.description] }}
|
|
26
|
26
|
|
|
27
|
27
|
article
|
|
|
@@ -65,8 +65,16 @@ export default {
|
|
65
|
65
|
target: null,
|
|
66
|
66
|
toSend: '',
|
|
67
|
67
|
messages: [],
|
|
68
|
|
- grouping: null,
|
|
|
68
|
+ grouping: {},
|
|
69
|
69
|
}),
|
|
|
70
|
+ // TODO: Make sure grouping.profile.profile_id actually exists
|
|
|
71
|
+ computed: {
|
|
|
72
|
+ theyRevealed() {
|
|
|
73
|
+ return this.grouping && this.grouping.revealed[this.grouping.profile.profile_id] ?
|
|
|
74
|
+ this.grouping.revealed[this.grouping.profile.profile_id] :
|
|
|
75
|
+ []
|
|
|
76
|
+ }
|
|
|
77
|
+ },
|
|
70
|
78
|
watch: {
|
|
71
|
79
|
async profile() {
|
|
72
|
80
|
this.loadTargetProfile()
|