Przeglądaj źródła

:construction: Temp measure for saving place in survey

juan_spike
tomit4 3 lat temu
rodzic
commit
213e23cae2
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3
    1
      frontend/src/views/OnboardingView.vue

+ 3
- 1
frontend/src/views/OnboardingView.vue Wyświetl plik

57
         aspectQuestions: [],
57
         aspectQuestions: [],
58
         responses: [],
58
         responses: [],
59
         currentStep: 0,
59
         currentStep: 0,
60
+        currentProfileId: null,
60
         survey: null,
61
         survey: null,
61
         invalidResponse: false,
62
         invalidResponse: false,
62
         authenticator: {},
63
         authenticator: {},
84
                         let profileId
85
                         let profileId
85
                         if (profilesFromUserId.length === 1) {
86
                         if (profilesFromUserId.length === 1) {
86
                             profileId = profilesFromUserId[0].profile_id
87
                             profileId = profilesFromUserId[0].profile_id
88
+                            this.currentProfileId = profileId
87
                         }
89
                         }
88
                         const profile = await fetchProfileByProfileId(profileId)
90
                         const profile = await fetchProfileByProfileId(profileId)
89
                         profile.responses.forEach(response => {
91
                         profile.responses.forEach(response => {
92
                                 val: response.val,
94
                                 val: response.val,
93
                             })
95
                             })
94
                         })
96
                         })
95
-                        this.currentStep = 6
97
+                        this.currentStep = this.responses.length + 3
96
                         this.goToStep(this.currentStep)
98
                         this.goToStep(this.currentStep)
97
                     }
99
                     }
98
                 }
100
                 }

Ładowanie…
Anuluj
Zapisz