Skip to content

Commit

Permalink
Update toolkit for Paper v7.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJulik committed Apr 30, 2024
1 parent 8db2021 commit 13bc41d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/ts/cart/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export const cart = {
// Display different cart elements
switch (cart_behavior) {
case "alert":
this.cart_alert = true;
if(this.cart_drawer) {
return;
} else {
this.cart_alert = true;
this.cart.alert_delay = "0%";
setTimeout(() => {
this.cart.alert_delay = "100%";
Expand All @@ -123,6 +126,8 @@ export const cart = {
this.cart.alert_delay = "0%";
this.cart_alert = false;
}, 4100);
}

break;
case "drawer":
this.cart_drawer = true;
Expand Down Expand Up @@ -380,7 +385,6 @@ export const cart = {
quantity: number,
openCart: boolean
) {

this.playAudioIfEnabled(this.click_audio);
let formData;

Expand Down
1 change: 0 additions & 1 deletion src/ts/globals/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const globals = {
quick_edit_popup: app.quick_edit_popup, // {boolean} To toggle the quick edit popup
quick_edit_handle: app.quick_edit_handle, // {string} The product handle of the product being edited
quick_add_handle: app.quick_add_handle, // {string} The product handle of the product being added

// Menu
menu_drawer: app.menu_drawer, // {boolean} To toggle the menu drawer
menu_nested: app.menu_nested, // {boolean} To check if the menu is nested
Expand Down

0 comments on commit 13bc41d

Please sign in to comment.