Parcourir la source

:bug: fixed group loading in chatter view

tags/0.0.3^2
toj il y a 3 ans
Parent
révision
595442f9e0
2 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 1
    1
      frontend/src/components/Messages.vue
  2. 4
    2
      frontend/src/views/ChatView.vue

+ 1
- 1
frontend/src/components/Messages.vue Voir le fichier

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

+ 4
- 2
frontend/src/views/ChatView.vue Voir le fichier

10
         hr
10
         hr
11
 
11
 
12
         .w-flex.column(v-if='!grouping._loading')
12
         .w-flex.column(v-if='!grouping._loading')
13
-            p you revealed: {{ grouping.revealed[profile.id.value].map(tag => tag.description) }}
14
             .w-flex.row
13
             .w-flex.row
15
                 button(@click='reveal(7)') reveal my name
14
                 button(@click='reveal(7)') reveal my name
16
                 button(@click='reveal(8)') reveal my email
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
     article
21
     article
20
         template(v-if='isLoading')
22
         template(v-if='isLoading')

Chargement…
Annuler
Enregistrer