forked from brooksbingham/theme-elegance
Merge pull request 'fix: change styling when checkout button is disabled' (#53) from apurvab/theme-elegance:main into main
Reviewed-on: brooksbingham/theme-elegance#53bug-new
commit
66afee84b2
|
@ -24,6 +24,10 @@ const CheckUpdateQuantityOperations = {
|
|||
(errorMsg !== "" && !hasError)
|
||||
) {
|
||||
$checkoutBtn.addClass("disabled");
|
||||
$checkoutBtn.css({
|
||||
'background-color': 'grey',
|
||||
'color': 'white',
|
||||
});
|
||||
}
|
||||
|
||||
if (errorMsg !== "") {
|
||||
|
@ -46,6 +50,11 @@ const CheckUpdateQuantityOperations = {
|
|||
isUpdateOperation = false;
|
||||
$(prestashop.themeSelectors.notifications.container).html("");
|
||||
$checkoutBtn.removeClass("disabled");
|
||||
$checkoutBtn.css({
|
||||
'background-color': '#172554',
|
||||
'color': 'white',
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
checkUpdateOperation: (resp) => {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue