More tweaks
This commit is contained in:
parent
4dc6887560
commit
c4648df1f5
2 changed files with 12 additions and 10 deletions
|
|
@ -93,7 +93,7 @@
|
||||||
linkType="text"
|
linkType="text"
|
||||||
:text="item?.name ?? ''"
|
:text="item?.name ?? ''"
|
||||||
href="javascript:void(0)"
|
href="javascript:void(0)"
|
||||||
@clickEvent="openModal(recyclingModalCmsWidgetName)" />
|
@clickEvent="openModal(RECYCLING_MODAL_REF_NAME)" />
|
||||||
</span>
|
</span>
|
||||||
<span v-else>{{ item?.name ?? '' }}</span>
|
<span v-else>{{ item?.name ?? '' }}</span>
|
||||||
<span>{{ formatAmountInDollars(item?.subTotal ?? 0) }}</span>
|
<span>{{ formatAmountInDollars(item?.subTotal ?? 0) }}</span>
|
||||||
|
|
@ -146,7 +146,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<contentGroupModal
|
<contentGroupModal
|
||||||
ref="RecycleModal"
|
:ref="RECYCLING_MODAL_REF_NAME"
|
||||||
:cmsWidgetName="recyclingModalCmsWidgetName">
|
:cmsWidgetName="recyclingModalCmsWidgetName">
|
||||||
<textBlock cmsWidgetName="RecycleTextBlock" />
|
<textBlock cmsWidgetName="RecycleTextBlock" />
|
||||||
</contentGroupModal>
|
</contentGroupModal>
|
||||||
|
|
@ -178,6 +178,7 @@ import {
|
||||||
import { getPriceOfLineItems, getTaxOfLineItems } from '@/helpers/price-calculator';
|
import { getPriceOfLineItems, getTaxOfLineItems } from '@/helpers/price-calculator';
|
||||||
|
|
||||||
const VERIFYING_COVERAGE = 'Verifying coverage';
|
const VERIFYING_COVERAGE = 'Verifying coverage';
|
||||||
|
const RECYCLING_MODAL_REF_NAME = "RecycleModal";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'cart-dropdown',
|
name: 'cart-dropdown',
|
||||||
|
|
@ -209,7 +210,8 @@ export default {
|
||||||
servicePackage: 'ServicePackageTitle',
|
servicePackage: 'ServicePackageTitle',
|
||||||
vapsItemDescriptions: 'VapsItemDescriptions'
|
vapsItemDescriptions: 'VapsItemDescriptions'
|
||||||
},
|
},
|
||||||
cartItemType
|
cartItemType,
|
||||||
|
RECYCLING_MODAL_REF_NAME
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -467,6 +469,8 @@ export default {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "@/styles/ux-variables-svg-strings.scss";
|
@import "@/styles/ux-variables-svg-strings.scss";
|
||||||
|
|
||||||
|
$RECYCLING_MODAL_REF_NAME: 'RecycleModal';
|
||||||
|
|
||||||
.force-no-top-margin {
|
.force-no-top-margin {
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
@ -536,7 +540,7 @@ export default {
|
||||||
max-width: fit-content;
|
max-width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(#RecycleModal h5) {
|
:deep(##{$MY_CONSTANT} h5) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,8 @@ ref="theForm"
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--TODO update-->
|
|
||||||
<contentGroupModal
|
<contentGroupModal
|
||||||
ref="recalModal"
|
:ref="RECAL_MODAL_REF_NAME"
|
||||||
cmsWidgetName="RecalModal" />
|
cmsWidgetName="RecalModal" />
|
||||||
<steeringModal
|
<steeringModal
|
||||||
ref="StateSteeringModal"
|
ref="StateSteeringModal"
|
||||||
|
|
@ -86,6 +85,7 @@ import bailoutMessage from '@/constants/bailoutMessage';
|
||||||
import contentGroupModal from '@/iss-components/content-group-modal/content-group-modal.vue';
|
import contentGroupModal from '@/iss-components/content-group-modal/content-group-modal.vue';
|
||||||
|
|
||||||
const options = { SAFELITE: 'SafeliteOption', TPA: 'TPAOption' };
|
const options = { SAFELITE: 'SafeliteOption', TPA: 'TPAOption' };
|
||||||
|
const RECAL_MODAL_REF_NAME = "RecalModal";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'provider-preference',
|
name: 'provider-preference',
|
||||||
|
|
@ -124,6 +124,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
RECAL_MODAL_REF_NAME,
|
||||||
selectedProvider: null,
|
selectedProvider: null,
|
||||||
showSteeringLink: false,
|
showSteeringLink: false,
|
||||||
tpaAcknowledgement: false,
|
tpaAcknowledgement: false,
|
||||||
|
|
@ -173,7 +174,7 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
prefAnswers(newValue, oldValue) {
|
prefAnswers(newValue, oldValue) {
|
||||||
if (newValue !== oldValue) {
|
if (newValue !== oldValue) {
|
||||||
setupModalLink(this, 'recalModal'); // TODO update
|
setupModalLink(this, RECAL_MODAL_REF_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -188,9 +189,6 @@ export default {
|
||||||
: false;
|
: false;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openModalAction(modalName) {
|
|
||||||
this.$refs[modalName.args].openModal();
|
|
||||||
},
|
|
||||||
getHeaderTextFromCms(cmsWidgetName) {
|
getHeaderTextFromCms(cmsWidgetName) {
|
||||||
const headerText = this.getCmsContent(cmsWidgetName, 'HeaderText');
|
const headerText = this.getCmsContent(cmsWidgetName, 'HeaderText');
|
||||||
return headerText?.replace(
|
return headerText?.replace(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue