File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_BECOME_PARTNER_URL = STORE_API_URL + '/hub/become-partner ' ;
3+ const REQUEST_BECOME_PARTNER_URL = STORE_API_URL + '/hub/request-contact ' ;
44
55class BecomePartner {
66
@@ -20,10 +20,16 @@ class BecomePartner {
2020 this . _feedbackData . success = false ;
2121 this . _feedbackData . inProgress = true ;
2222 this . _feedbackData . errorMessage = '' ;
23+
24+ const requestData = {
25+ ...this . _submitData ,
26+ formType : 'become-partner'
27+ } ;
28+
2329 $ . ajax ( {
2430 url : REQUEST_BECOME_PARTNER_URL ,
2531 type : 'POST' ,
26- data : this . _submitData
32+ data : requestData
2733 } ) . done ( _ => {
2834 this . onRequestSucceeded ( ) ;
2935 if ( this . _submitData . acceptNewsletter ) {
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_BOOK_DEMO_URL = STORE_API_URL + '/hub/book-demo ' ;
3+ const REQUEST_BOOK_DEMO_URL = STORE_API_URL + '/hub/request-contact ' ;
44
55class BookDemo {
66
@@ -20,10 +20,16 @@ class BookDemo {
2020 this . _feedbackData . success = false ;
2121 this . _feedbackData . inProgress = true ;
2222 this . _feedbackData . errorMessage = '' ;
23+
24+ const requestData = {
25+ ...this . _submitData ,
26+ formType : 'book-demo'
27+ } ;
28+
2329 $ . ajax ( {
2430 url : REQUEST_BOOK_DEMO_URL ,
2531 type : 'POST' ,
26- data : this . _submitData
32+ data : requestData
2733 } ) . done ( _ => {
2834 this . onRequestSucceeded ( ) ;
2935 if ( this . _submitData . acceptNewsletter ) {
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_CONTACT_SALES_URL = STORE_API_URL + '/hub/contact-sales ' ;
3+ const REQUEST_CONTACT_SALES_URL = STORE_API_URL + '/hub/request-contact ' ;
44
55class ContactSales {
66
@@ -20,10 +20,16 @@ class ContactSales {
2020 this . _feedbackData . success = false ;
2121 this . _feedbackData . inProgress = true ;
2222 this . _feedbackData . errorMessage = '' ;
23+
24+ const requestData = {
25+ ...this . _submitData ,
26+ formType : 'contact-sales'
27+ } ;
28+
2329 $ . ajax ( {
2430 url : REQUEST_CONTACT_SALES_URL ,
2531 type : 'POST' ,
26- data : this . _submitData
32+ data : requestData
2733 } ) . done ( _ => {
2834 this . onRequestSucceeded ( ) ;
2935 if ( this . _submitData . acceptNewsletter ) {
You can’t perform that action at this time.
0 commit comments