Merge branch 'release/2023.05.04' into rlsmerge/2023.05.04-to-develop-04.26

This commit is contained in:
CarlNation 2023-04-26 09:31:16 -04:00
commit a3e12ebff2
2 changed files with 36 additions and 2 deletions

View file

@ -167,6 +167,34 @@ export default {
lastValuePushedToGa: null, lastValuePushedToGa: null,
}; };
}, },
<<<<<<< HEAD:src/digital-components/button-question/button-question.vue
=======
watch: {
answers() {
//once we get the answers to display from parent, see if we need a GA event to log what we showed
if (this.logDisplayedValuesEvent && this.answers.length > 0) {
var eventLabel = "";
//build comma separated list of all items in button list that we are going to display on page
this.answers.forEach((item) => {
if (item.Name) {
eventLabel += item.Name + ",";
}
if (item.buttonLabel) {
eventLabel += item.buttonLabel + ",";
}
});
eventLabel = eventLabel.slice(0, -1); //remove the last comma
this.pushEventToGA(
this.$route.query[queryStrings.FMG_PAGE],
this.GaActions.DISPLAYED,
eventLabel,
true
);
}
},
},
>>>>>>> 2023.05.04:src/common-components/button-question/button-question.vue
computed: { computed: {
getFieldSetClasses() { getFieldSetClasses() {
const baseClasses = this.isOverflowScrollable const baseClasses = this.isOverflowScrollable
@ -264,7 +292,12 @@ export default {
var eventLabel = ""; var eventLabel = "";
//build comma separated list of all items in button list that we are going to display on page //build comma separated list of all items in button list that we are going to display on page
this.answers.forEach((item) => { this.answers.forEach((item) => {
eventLabel += item.Name + ","; if (item.Name){
eventLabel += item.Name + ",";
}
if (item.buttonLabel) {
eventLabel += item.buttonLabel + ",";
}
}); });
eventLabel = eventLabel.slice(0, -1); //remove the last comma eventLabel = eventLabel.slice(0, -1); //remove the last comma

View file

@ -7,7 +7,8 @@
:buttonTypeObject="servicePackageRadio" :buttonTypeObject="servicePackageRadio"
v-model="selectedPackageName" v-model="selectedPackageName"
:validationRules="validationRules" :validationRules="validationRules"
:isRequired="isRequired" /> :isRequired="isRequired"
:logDisplayedValuesEvent="true" />
</template> </template>
<script> <script>