浏览代码

:recycle: Finished refactor on Chat reveal functionality

tags/0.0.3^2
tomit4 3 年前
父节点
当前提交
6481f412c8

+ 1
- 0
backend/lib/routes/membership/reveal.js 查看文件

81
                         {
81
                         {
82
                             name: 'REVEALED_INFO',
82
                             name: 'REVEALED_INFO',
83
                             revealed_info: revealInfo,
83
                             revealed_info: revealInfo,
84
+                            profile_id: completeProfile[0].profile_id,
84
                             grouping_id: grouping_id,
85
                             grouping_id: grouping_id,
85
                             tag: tag_id,
86
                             tag: tag_id,
86
                             description: tag_description,
87
                             description: tag_description,

+ 1
- 0
frontend/src/services/notification.service.js 查看文件

51
             const tagFromNotification = {
51
             const tagFromNotification = {
52
                 is_active: 1,
52
                 is_active: 1,
53
                 tag_category: "reveal",
53
                 tag_category: "reveal",
54
+                profile_id: parsed.profile_id,
54
                 tag_description: parsed.description,
55
                 tag_description: parsed.description,
55
                 tag_id: parsed.tag,
56
                 tag_id: parsed.tag,
56
             }
57
             }

+ 7
- 2
frontend/src/views/ChatView.vue 查看文件

2
 main.view--chat
2
 main.view--chat
3
     header.mb6(v-if='profile && grouping')
3
     header.mb6(v-if='profile && grouping')
4
         h3 chatting with:
4
         h3 chatting with:
5
-        p {{ target.profile_id }} | {{ grouping.profile.user_name }} | {{ grouping.profile.user_email }}
6
-
5
+        span {{ target.profile_id }} | 
6
+        span(v-if="grouping.revealedFromNotification.length")
7
+            span(v-for="revealed in grouping.revealedFromNotification")
8
+                span(v-if="revealed.profile_id === target.profile_id")
9
+                    span {{ revealed[revealed.tag_description] }} | 
10
+        span(v-else)
11
+            span  {{ grouping.profile.user_name }} | {{ grouping.profile.user_email }}
7
         h3 logged in as:
12
         h3 logged in as:
8
         p {{ profile.id }} | {{ profile._profile.user_name }} | {{ profile._profile.user_email }}
13
         p {{ profile.id }} | {{ profile._profile.user_name }} | {{ profile._profile.user_email }}
9
         //- p subscriptions: {{ profile.chatter.subscriptions }}
14
         //- p subscriptions: {{ profile.chatter.subscriptions }}

正在加载...
取消
保存