CSR-1452 | Tech review changes
This commit is contained in:
parent
f06d9e9e5e
commit
13be6d4559
2 changed files with 3 additions and 6 deletions
|
|
@ -47,8 +47,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
pushGlobalAlert(alertToPush, isAutoDismissing) {
|
pushGlobalAlert(alertToPush, isAutoDismissing) {
|
||||||
alertToPush.displayAlert = true;
|
alertToPush.displayAlert = true;
|
||||||
alertToPush.id = this.alertIdCounter;
|
alertToPush.id = crypto.randomUUID();
|
||||||
this.alertIdCounter++;
|
|
||||||
if (isAutoDismissing) {
|
if (isAutoDismissing) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
alertToPush.displayAlert = false;
|
alertToPush.displayAlert = false;
|
||||||
|
|
|
||||||
|
|
@ -546,7 +546,6 @@ export const mutations = {
|
||||||
state.order.customer.phoneNumber = sessionInformation.order.customer.phoneNumber;
|
state.order.customer.phoneNumber = sessionInformation.order.customer.phoneNumber;
|
||||||
state.order.customer.isSmsOptIn = sessionInformation.order.customer.isSmsOptIn;
|
state.order.customer.isSmsOptIn = sessionInformation.order.customer.isSmsOptIn;
|
||||||
|
|
||||||
state.order.existingPromoCode = sessionInformation.order.existingPromoCode;
|
|
||||||
state.applicationUser.experiments = sessionInformation.applicationUser.experiments;
|
state.applicationUser.experiments = sessionInformation.applicationUser.experiments;
|
||||||
state.applicationUser.crmCustomerId = sessionInformation.applicationUser.crmCustomerId;
|
state.applicationUser.crmCustomerId = sessionInformation.applicationUser.crmCustomerId;
|
||||||
state.applicationUser.pageData = sessionInformation.applicationUser.pageData;
|
state.applicationUser.pageData = sessionInformation.applicationUser.pageData;
|
||||||
|
|
@ -1718,7 +1717,6 @@ export const actions = {
|
||||||
jobMaxMinutes: order.schedule?.jobMaxMinutes,
|
jobMaxMinutes: order.schedule?.jobMaxMinutes,
|
||||||
jobMinMinutes: order.schedule?.jobMinMinutes,
|
jobMinMinutes: order.schedule?.jobMinMinutes,
|
||||||
},
|
},
|
||||||
existingPromoCode: null,
|
|
||||||
referralCorrelationId: order.referralCorrelationId,
|
referralCorrelationId: order.referralCorrelationId,
|
||||||
referralDate: order.referralDate,
|
referralDate: order.referralDate,
|
||||||
referralNumber: order.referralNumber?.toString(),
|
referralNumber: order.referralNumber?.toString(),
|
||||||
|
|
@ -2792,8 +2790,8 @@ function convertGlassPieceToBackEndCompatibleFormat(glassPieces) {
|
||||||
function renameGlassToReplaceAttributes(glassToReplace) {
|
function renameGlassToReplaceAttributes(glassToReplace) {
|
||||||
let newGlassToReplace = [];
|
let newGlassToReplace = [];
|
||||||
if (glassToReplace) {
|
if (glassToReplace) {
|
||||||
glassToReplace.forEach((item) => {
|
newGlassToReplace = glassToReplace.map((item) => {
|
||||||
newGlassToReplace.push({ location: item.glassLocation, name: item.glassName });
|
return { location: item.glassLocation, name: item.glassName };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return newGlassToReplace;
|
return newGlassToReplace;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue