ソースを参照

:memo: Made extensive note on change my answers feature

tags/0.0.4
tomit4 2年前
コミット
635f72b674
1個のファイルの変更11行の追加1行の削除
  1. 11
    1
      frontend/src/views/SurveyCompleteView.vue

+ 11
- 1
frontend/src/views/SurveyCompleteView.vue ファイルの表示

14
             p {{ aspectResponse.response }}
14
             p {{ aspectResponse.response }}
15
             br
15
             br
16
         br
16
         br
17
-        w-button.ma1(@click="changeAnswers") Change Answers
17
+        // TODO: Bring user to another View.vue page that allows 
18
+        // them to change their answers to the survey
19
+        // OR render radio buttons next to the questions/answers above,
20
+        // allowing them to return to ONLY that specific survey step 
21
+        // using this.$emit('somefunc') back up to OnboardingView.vue
22
+        // Toggling a boolean flag that prevents "SUBMIT" from goToStep(), 
23
+        // and instead brings them back here...
24
+        // 
25
+        // w-button.ma1(@click="changeAnswers") Change Answers
18
 </template>
26
 </template>
19
 
27
 
20
 <script>
28
 <script>
57
                 }
65
                 }
58
             })
66
             })
59
         },
67
         },
68
+        // Grabs all responses to questions that are NOT aspect questions
60
         grabResponsesFromProfile(aspectQuestions) {
69
         grabResponsesFromProfile(aspectQuestions) {
61
             const aspectQuestionsKeys = Object.keys(aspectQuestions).map(Number)
70
             const aspectQuestionsKeys = Object.keys(aspectQuestions).map(Number)
62
             const responses = currentProfile._profile.responses
71
             const responses = currentProfile._profile.responses
96
                     return typeof res === 'object'
105
                     return typeof res === 'object'
97
                 })
106
                 })
98
         },
107
         },
108
+        // changeAnswers() {},
99
     },
109
     },
100
 }
110
 }
101
 </script>
111
 </script>

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