ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/packs/provisioning-actions-common.js

Summary

Maintainability
A
0 mins
Test Coverage
window.provisioningListenToRx = () => {
  listenToRx((event) => {
    if (!event || !event.payload || event.type !== 'GTL_CLICKED' || event.actionType !== 'provisioning') {
      return;
    }

    const { action, item } = event.payload;

    sendDataWithRx({ item, type: 'gtlSetOneRowActive' });
    miqAjax(`${action.url}${item.id}`);
  });
};