Pārlūkot izejas kodu

:bug: fixed group loading in chatter view

tags/0.0.3^2
toj 3 gadus atpakaļ
vecāks
revīzija
595442f9e0

+ 1
- 1
frontend/src/components/Messages.vue Parādīt failu

@@ -2,7 +2,7 @@
2 2
 .sidebar--messages
3 3
   h5.message__title matches
4 4
   router-link(
5
-        :to="`/chats/${match.profile.profile_id}`" 
5
+        :to="`/chat/${match.profile.profile_id}`" 
6 6
         v-for='match in matches' 
7 7
         :key='match.profile.profile_id' 
8 8
         :class="[pid == match.profile.profile_id ? 'active' : '', 'sidebar__message', 'f-col', 'start']"

+ 4
- 2
frontend/src/views/ChatView.vue Parādīt failu

@@ -10,11 +10,13 @@ main.view--chat
10 10
         hr
11 11
 
12 12
         .w-flex.column(v-if='!grouping._loading')
13
-            p you revealed: {{ grouping.revealed[profile.id.value].map(tag => tag.description) }}
14 13
             .w-flex.row
15 14
                 button(@click='reveal(7)') reveal my name
16 15
                 button(@click='reveal(8)') reveal my email
17
-            p they revealed: {{ grouping.revealed[target.profile_id].map(tag => tag.description) }}
16
+            p you revealed: 
17
+                span(v-if="grouping.revealed[profile.id]") {{ grouping.revealed }}
18
+            p they revealed:
19
+                span(v-if="grouping.revealed[grouping.profile.profile_id]") {{ grouping.revealed[grouping.profile.profile_id] }}
18 20
 
19 21
     article
20 22
         template(v-if='isLoading')

Notiek ielāde…
Atcelt
Saglabāt