VMware {code} Community
kumartade
Enthusiast
Enthusiast

PluginSeed 0.9.8 Bug- GlobalRefresh Issue

Hi,

It seems a serious flaw\issue with the plugin-seed 0.9.8 code base.

If we have a listing view which had subscribed to global refresh event and there is a plugin based action (uses openModalDialog API).

On invoking the action, listing refresh event will no longer work. How to handle this issue?

Below are the reproducible steps for the issue with official plugin-seed as well.

Plugin_seed_globalRefresh_issue.gif

NOTE: To maintain compatibility with 6.5U1, we cannot use the new set of JS API's.

Thanks,

Kumar

Tags (2)
Reply
0 Kudos
2 Replies
kumartade
Enthusiast
Enthusiast

Any update on this issue?

Reply
0 Kudos
laurentsd
VMware Employee
VMware Employee

Here is a fix you can apply in your version of plugin-seed.  In app.component.ts, add this test to avoid calling setGlobalRefreshHandler in the case of modal dialogs

      // Refresh handler to be used in plugin mode except for modal dialogs

      const iframeUrl = window.location.href;

      const isModal = iframeUrl.indexOf("modalData=") > 0 || iframeUrl.indexOf("actionUid=") > 0;

      if (!isModal) {

         this.gs.getWebPlatform().setGlobalRefreshHandler(this.refresh.bind(this), document);

      }

Reply
0 Kudos