We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 13b3955d authored by Attila Kiss's avatar Attila Kiss Committed by GitHub

Do not render modal when it is only a redirect component (#932)

parent 2d513ae0
......@@ -172,10 +172,10 @@ define(
);
} else {
// render component
self.renderActionComponent(response.action);
self.renderActionComponent(response.resultCode, response.action);
}
},
renderActionComponent: function(action) {
renderActionComponent: function(resultCode, action) {
var self = this;
var actionNode = document.getElementById('ActionContainer');
......@@ -191,7 +191,10 @@ define(
modalClass: 'ActionModal',
});
self.popupModal.modal('openModal');
if (resultCode !== 'RedirectShopper') {
self.popupModal.modal('openModal');
}
self.actionComponent = self.checkoutComponent.createFromAction(
action).mount(actionNode);
},
......
......@@ -485,11 +485,11 @@ define(
} else {
// render component
self.orderId = orderId;
self.renderActionComponent(response.action);
self.renderActionComponent(response.resultCode, response.action);
}
},
renderActionComponent: function(action) {
renderActionComponent: function(resultCode, action) {
var self = this;
var actionNode = document.getElementById('ActionContainer');
......@@ -505,7 +505,10 @@ define(
modalClass: 'ActionModal',
});
self.popupModal.modal('openModal');
if (resultCode !== 'RedirectShopper') {
self.popupModal.modal('openModal');
}
self.actionComponent = self.checkoutComponent.createFromAction(
action).mount(actionNode);
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment