Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. if(serverData && serverData.offerResponse &&
  2. (serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.LOST
  3. || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.UNKNOWN))
  4. {
  5. window.location.href = CONFIG.WEBROOTURL
  6. }
  7. else if(serverData && serverData.offerResponse &&
  8. (serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.NEW
  9. || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.EXPIRED))
  10. {
  11. dynamicSteps = GetDynamicSteps([
  12. StepNames.Home,
  13. StepNames.CheckYourQuote,
  14. StepNames.VehicleDetails,
  15. StepNames.SignIn,
  16. StepNames.PersonalDetails,
  17. StepNames.YourOffer,
  18. StepNames.OfferAccepted,
  19. StepNames.Final
  20. ])
  21. }
  22. ...
  23. else if(serverData && serverData.offerResponse
  24. && (serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.ACCEPTED
  25. || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.SOLD
  26. || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.MAYBE
  27. ))
  28. {
  29. dynamicSteps = GetDynamicSteps([
  30. StepNames.Home,
  31. StepNames.SignIn,
  32. StepNames.YourOffer,
  33. StepNames.OfferAccepted,
  34. StepNames.Final
  35. ]);
  36. }
  37. else{
  38. dynamicSteps = GetDynamicSteps([
  39. StepNames.Home,
  40. StepNames.SelectCar,
  41. StepNames.VehicleDetails,
  42. StepNames.SignIn,
  43. StepNames.PersonalDetails,
  44. StepNames.YourOffer,
  45. StepNames.OfferAccepted,
  46. StepNames.Final
  47. ])
  48. }
  49. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement