Skip to content

Commit

Permalink
Listen to vue:loaded (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Nov 29, 2024
1 parent 951053f commit be9d05e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require": {
"php": "^8.1|^8.2",
"justbetter/laravel-magento-client": "^2.1",
"rapidez/core": "^2.0"
"rapidez/core": "^2.8"
},
"config": {
"sort-packages": true
Expand Down
2 changes: 1 addition & 1 deletion resources/js/eventlisteners.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { token } from 'Vendor/rapidez/core/resources/js/stores/useUser'
import { mask } from 'Vendor/rapidez/core/resources/js/stores/useMask'

document.addEventListener('turbo:load', () => {
document.addEventListener('vue:loaded', () => {
async function placeOrder() {
if (!token.value && window.app.guestEmail) {
await window.magentoGraphQL(
Expand Down
2 changes: 1 addition & 1 deletion resources/js/package.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './eventlisteners'

document.addEventListener('turbo:load', (event) => {
document.addEventListener('vue:loaded', (event) => {
Vue.set(window.app.checkout, 'pay_issuer', null)
});

0 comments on commit be9d05e

Please sign in to comment.