diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js
index f67e97e0..32b25d2d 100644
--- a/src/constants/endpoints.js
+++ b/src/constants/endpoints.js
@@ -39,6 +39,10 @@ const endpoints = {
url: "/parts/api/v1/parts/parts",
method: "POST",
},
+ GetPriceOrderItems: {
+ url: '/price/api/v1/price/order-items',
+ method: 'GET'
+ },
GetCapabilityQuestions: {
url: "/parts/api/v1/parts/capability-questions",
method: "GET",
diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js
index 4eb3b067..6e0ba758 100644
--- a/src/helpers/cms-content-helper.js
+++ b/src/helpers/cms-content-helper.js
@@ -26,7 +26,8 @@ export function fetchCmsContentForPage(issPage) {
// Process the client override if it exists.
return processPageData(baseResponse, clientResponse);
},
- (error) => {
+ (error) => {
+ console.error(error);
// Process the just the base if no client override exists.
return processPageData(baseResponse, null);
}
@@ -42,10 +43,13 @@ export function fetchCmsContentForPage(issPage) {
// clientResponse = contains the widgets from the client override page. (null if none)
function processPageData(baseResponse, clientResponse) {
const pageDataFromCms = {};
- let widgets = [];
+ let widgets = [];
- if ( clientResponse === null )
- {
+ if (!baseResponse?.data?.Result) {
+ console.error('No result data found'); // Something has gone terribly wrong.
+ return {}
+ }
+ if (!clientResponse?.data?.Result) {
widgets = baseResponse.data.Result;
}
else
@@ -243,7 +247,10 @@ export function processIfStatements(str, ifConditionKeyword, replacePlaceholderC
const containsRelevantIfStatement = new RegExp('{if:' + ifConditionKeyword + ':.+?}', 'g').test(
str
);
- if (!containsRelevantIfStatement) {
+ //str = str.replace(/\r?\n|\r/g, '');
+
+ const hasEmbeddedCrLf = /\r?\n|\r/g.test(str);
+ if (!containsRelevantIfStatement || hasEmbeddedCrLf) {
return str;
} else {
const ifStatementRegexExpression = getIfStatementRegexExpression();
@@ -297,6 +304,8 @@ function getAndFlagFirstNonNestedIfStatementWithKeyword(matches, ifConditionKeyw
}
index++;
}
+ console.error('Did not find end in conditional logic');
+ return matches;
}
function flagMatchesForProcessing(matches, elseStatementIndex) {
@@ -395,6 +404,10 @@ function getIfStatementRegexExpression() {
// End of If Statement Processing Logic //
//////////////////////////////////////////
+export function doesCopyContainTextLink(copy) {
+ return copy.includes(dynamicStrings.TEXT_LINK);
+}
+
export function doesCopyContainRouterLink(copy) {
return copy.includes(this.dynamicStrings.ROUTER_LINK);
}
diff --git a/src/iss-components/site-footer/site-footer.vue b/src/iss-components/site-footer/site-footer.vue
index b2537703..2ce2c41c 100644
--- a/src/iss-components/site-footer/site-footer.vue
+++ b/src/iss-components/site-footer/site-footer.vue
@@ -3,7 +3,7 @@