mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
style: pos checkout button color (#45890)
style: pos checkout button color
This commit is contained in:
@@ -769,7 +769,7 @@
|
|||||||
|
|
||||||
.submit-order-btn {
|
.submit-order-btn {
|
||||||
@extend .primary-action;
|
@extend .primary-action;
|
||||||
background-color: var(--blue-500);
|
background-color: var(--primary-color);
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.$component.on("click", ".checkout-btn", async function () {
|
this.$component.on("click", ".checkout-btn", async function () {
|
||||||
if ($(this).attr("style").indexOf("--blue-500") == -1) return;
|
if ($(this).attr("style").indexOf("--primary-color") == -1) return;
|
||||||
|
|
||||||
await me.events.checkout();
|
await me.events.checkout();
|
||||||
me.toggle_checkout_btn(false);
|
me.toggle_checkout_btn(false);
|
||||||
@@ -702,12 +702,12 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
if (toggle) {
|
if (toggle) {
|
||||||
this.$add_discount_elem.css("display", "flex");
|
this.$add_discount_elem.css("display", "flex");
|
||||||
this.$cart_container.find(".checkout-btn").css({
|
this.$cart_container.find(".checkout-btn").css({
|
||||||
"background-color": "var(--blue-500)",
|
"background-color": "var(--primary-color)",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$add_discount_elem.css("display", "none");
|
this.$add_discount_elem.css("display", "none");
|
||||||
this.$cart_container.find(".checkout-btn").css({
|
this.$cart_container.find(".checkout-btn").css({
|
||||||
"background-color": "var(--blue-200)",
|
"background-color": "var(--gray-200)",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user