소스 검색

:construction: Temp measure for saving place in survey

tags/0.0.3^2
tomit4 3 년 전
부모
커밋
42718cf265
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      frontend/src/views/OnboardingView.vue

+ 3
- 1
frontend/src/views/OnboardingView.vue 파일 보기

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

Loading…
취소
저장