Ver código fonte

:memo: Made extensive note on change my answers feature

tags/0.0.4
tomit4 2 anos atrás
pai
commit
635f72b674
1 arquivos alterados com 11 adições e 1 exclusões
  1. 11
    1
      frontend/src/views/SurveyCompleteView.vue

+ 11
- 1
frontend/src/views/SurveyCompleteView.vue Ver arquivo

@@ -14,7 +14,15 @@ main.view--surveycomplete
14 14
             p {{ aspectResponse.response }}
15 15
             br
16 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 26
 </template>
19 27
 
20 28
 <script>
@@ -57,6 +65,7 @@ export default {
57 65
                 }
58 66
             })
59 67
         },
68
+        // Grabs all responses to questions that are NOT aspect questions
60 69
         grabResponsesFromProfile(aspectQuestions) {
61 70
             const aspectQuestionsKeys = Object.keys(aspectQuestions).map(Number)
62 71
             const responses = currentProfile._profile.responses
@@ -96,6 +105,7 @@ export default {
96 105
                     return typeof res === 'object'
97 106
                 })
98 107
         },
108
+        // changeAnswers() {},
99 109
     },
100 110
 }
101 111
 </script>

Carregando…
Cancelar
Salvar