ソースを参照

:memo: Removed comments pertaining to refactor

tags/0.0.3^2
tomit4 3年前
コミット
57b6465e69

+ 0
- 2
frontend/src/services/grouping.service.js ファイルの表示

26
                     `/profile/${profileId}/tags/${grouping.grouping_id}`,
26
                     `/profile/${profileId}/tags/${grouping.grouping_id}`,
27
                 )
27
                 )
28
                 grouping.tags = [...targetTags, ...profileTags]
28
                 grouping.tags = [...targetTags, ...profileTags]
29
-                // NOTE: ref([]) allows to re render ChatView.vue revealed info upon reveal,
30
-                // but does not persist...
31
                 grouping.revealedFromNotification = ref([])
29
                 grouping.revealedFromNotification = ref([])
32
                 grouping._loading.value = false
30
                 grouping._loading.value = false
33
                 validGroupingInstances.push(grouping)
31
                 validGroupingInstances.push(grouping)

+ 0
- 3
frontend/src/services/notification.service.js ファイルの表示

58
             const target_desc = parsed.description
58
             const target_desc = parsed.description
59
             tagFromNotification[target_desc] = parsed.revealed_info
59
             tagFromNotification[target_desc] = parsed.revealed_info
60
             foundGrouping.profile.reveal.push(tagFromNotification)
60
             foundGrouping.profile.reveal.push(tagFromNotification)
61
-            // NOTE: because revealedFromNotification is a ref() in
62
-            // grouping.service.js, ChatView.vue can render revealed info
63
-            // immediately, but will not persist
64
             foundGrouping.revealedFromNotification.value.push(tagFromNotification)
61
             foundGrouping.revealedFromNotification.value.push(tagFromNotification)
65
         }
62
         }
66
     }
63
     }

+ 0
- 5
frontend/src/views/ChatView.vue ファイルの表示

15
                 button(@click='reveal(8)') reveal my email
15
                 button(@click='reveal(8)') reveal my email
16
                 // TODO: Remove later, only for testing
16
                 // TODO: Remove later, only for testing
17
                 button(@click='checkData()') check data
17
                 button(@click='checkData()') check data
18
-            // TODO: Refactor, what if two people have the same name, etc.?
19
-            // NOTE: see notes in services/grouping.service.js and
20
-            // services/notification.service.js
21
             p you revealed:
18
             p you revealed:
22
                 span(v-if="grouping.revealed[profile.id.value]")
19
                 span(v-if="grouping.revealed[profile.id.value]")
23
                     ul(v-for="reveal in grouping.revealed[profile.id.value]")
20
                     ul(v-for="reveal in grouping.revealed[profile.id.value]")
24
                         li {{ reveal.description }}: {{ profile._profile[reveal.description] }}
21
                         li {{ reveal.description }}: {{ profile._profile[reveal.description] }}
25
             p they revealed:
22
             p they revealed:
26
-            // BUG: persists, but doesn't display upon reveal
27
             span(v-if="grouping.revealed[target.profile_id]")
23
             span(v-if="grouping.revealed[target.profile_id]")
28
                 ul(v-for="reveal in grouping.revealed[target.profile_id]")
24
                 ul(v-for="reveal in grouping.revealed[target.profile_id]")
29
                     li {{ reveal.description }}: {{ target[reveal.description] }}
25
                     li {{ reveal.description }}: {{ target[reveal.description] }}
30
-            // BUG: reveals immediately, but does not persist
31
             ul(v-for="revealed in grouping.revealedFromNotification")
26
             ul(v-for="revealed in grouping.revealedFromNotification")
32
                 li(v-if="revealed[revealed.tag_description] !== profile._profile[revealed.tag_description]") {{ revealed.tag_description }}: {{ revealed[revealed.tag_description] }}
27
                 li(v-if="revealed[revealed.tag_description] !== profile._profile[revealed.tag_description]") {{ revealed.tag_description }}: {{ revealed[revealed.tag_description] }}
33
 
28
 

読み込み中…
キャンセル
保存