[Vuejs]-How to use plugins in Action Files Vue JS

0👍

Seems the plugin already uses an event bus for triggering the open / close events so you should be able to tap in to that via the plugin instance registered into Vue

In your store, try

import Vue from 'vue'

// snip

export const checkIfCustomerExists = (context, request) => {
  // snip
  Vue.prototype.$Simplert.open(infoMessageBox)
}

Note, this seems pretty hacky to me. I’d advise you to raise a feature request with the maintainers to expose the SimplertEventBus so it can be used globally.

👤Phil

Leave a comment