CSR-111 Cleanup
This commit is contained in:
parent
ec7bc77e67
commit
e6dfb8a25f
3 changed files with 4 additions and 10 deletions
|
|
@ -74,7 +74,6 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
selectedAnswer: [],
|
||||
// TODO This shouldn't be an object with property `capabilityQuestions`
|
||||
capabilityQuestionsData: store.getters.pageData(fmgPageValues.CAPABILITY_QUESTIONS).partsOrQuestions,
|
||||
selectedAnswers: {},
|
||||
currentQuestionChainIndex: 0,
|
||||
|
|
@ -108,11 +107,8 @@ export default {
|
|||
return this.currentQuestionChainIndex === i || part.answerData?.answerResult?.length > 0
|
||||
},
|
||||
arePagePrerequisitesValid() {
|
||||
return true;
|
||||
|
||||
// TODO UNCOMMENT
|
||||
// const capabilityQuestionsPageData = store.getters.pageData(fmgPageValues.CAPABILITY_QUESTIONS);
|
||||
// return capabilityQuestionsPageData && Object.keys(capabilityQuestionsPageData).length > 0;
|
||||
const capabilityQuestionsPageData = store.getters.pageData(fmgPageValues.CAPABILITY_QUESTIONS);
|
||||
return capabilityQuestionsPageData && Object.keys(capabilityQuestionsPageData).length > 0;
|
||||
},
|
||||
async forwardButtonAction() {
|
||||
const capabilityQuestionsAnswersArray = this.capabilityQuestionsData.map((item) => {
|
||||
|
|
|
|||
|
|
@ -72,9 +72,7 @@ export default {
|
|||
const hasPartQuestions = this.hasPartQuestions(partsOrQuestions)
|
||||
const hasGlassLocationWithMultipleParts = this.hasGlassLocationWithMultipleParts(partsOrQuestions);
|
||||
const hasChildPartQuestions = this.hasChildPartQuestions(partsOrQuestions);
|
||||
|
||||
// TODO REMOVE
|
||||
const hasCapabilityQuestions = true //this.hasCapabilityQuestions(partsOrQuestions);
|
||||
const hasCapabilityQuestions = this.hasCapabilityQuestions(partsOrQuestions);
|
||||
|
||||
if (hasPartQuestions && this.currentPageComesBeforePage(currentPage, fmgPageValues.PART_QUESTIONS)) {
|
||||
self.$router.navigateWithSaving(self.navigationScenarios.HAS_PART_QUESTIONS, self.$route, {}, {}, { partsOrQuestions: partsOrQuestions });
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ function navigateToUrl(url, optionalQuery = {}) {
|
|||
for (const queryKey in optionalQuery) {
|
||||
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
|
||||
}
|
||||
|
||||
|
||||
window.location.assign(externalUrl);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue