Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Feb 20, 2024
1 parent 11038f2 commit f3b3e22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Inputs/WebRadio/Radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
}
return {
text, // ESLint object-shorthand
value: v['http://schema.repronim.org/value'][0]['@value'] ? v['http://schema.repronim.org/value'][0]['@value'] : text,
value: v['http://schema.repronim.org/value'][0]['@value'] ? v['http://schema.repronim.org/value'][0]['@value'] : text, // Fallback to 'text' in case schema.repronim value isn't found
image: v['http://schema.org/image'] ? v['http://schema.org/image'][0]['@value'] : null,
};
});
Expand Down Expand Up @@ -155,7 +155,6 @@ export default {
this.$emit('valueChanged', this.checkboxSelected);
},
sendData() {
console.log(`${this.selected} Aaron`)
this.$emit('valueChanged', this.selected);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Survey/Survey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
let exportVal = val;
let usedList = [];
let isAboutUrl = itemUrl;
console.log(`${val} Aaaaaa`)
if (val?.constructor === Object && !val?.hasOwnProperty('unitCode')) { // to find sub-activities; condition might need to be changed
const sectionItemKey = Object.keys(val)[0];
const sectionItemValue = Object.values(val)[0];
Expand Down Expand Up @@ -322,6 +321,7 @@
this.$emit('saveScores', this.srcUrl, this.scores);
}
}
// TODO: Evaluate -- this was broken for Radio Button input
this.updateProgress();
},
setScore(scoreObj, index) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/SurveyItem/SurveyItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<!-- https://codepen.io/vikttor_/pen/jeqoPN?page=1& -->
<div class="contextItem align-self-center center w-100">
<transition name="fade" mode="out-in">
<!-- // Aaron-->
<InputSelector v-if="status === 'ready' && ui !== 'multipart' && ui !== 'section'"
:inputType="ui"
:readOnly="widgetType"
Expand Down Expand Up @@ -182,7 +181,7 @@
ui() {
/* eslint-disable */
if (this.data['@type'] && this.data['@type'][0] === "http://schema.repronim.org/Activity") {
console.log(this.data)
return 'section';
}
else if (this.data['http://schema.repronim.org/inputType']) {
return this.data['http://schema.repronim.org/inputType'][0]['@value'];
Expand Down Expand Up @@ -375,6 +374,7 @@
},
clearMPResponses() {
this.mp_responses = {};
this.mp_progress = 0;
this.$emit('setData', {}, this.index);
},
setMPProgress(progress) {
Expand Down

0 comments on commit f3b3e22

Please sign in to comment.