Jira Module Dashboard gadget - Custom UI

Hi @dmorrow,
thanks for your reply.

I believe the dashboard gadget extension point will be re-rendered each time the user toggles between edit and view mode.

Yes, but there does not seem to be a way for the user to toggle the modes. By default, in a custom UI setting, the gadget starts out in editing mode. The app displays, say, a custom form to edit the config. Upon the submit of the form data, the gadget container should then toggle to the view mode, but it is unclear what the app needs to do to trigger that (so far it just stores the config in the Forge storage).

With UI kit, you could use the DashboardGadgetEdit component where I suppose the mandatory onSubmit function does the trick. If there is no way to trigger that mode change for custom UI, it would mean that the gadget container would always remain in edit mode. While the app could work around that, it would have to provide an extra button for the user to toggle back to the edit mode (instead of the user being able to use the built-in “configure” menu point of the gadget container). From a UX point of view, that would be rather bad.

Best regards,
Thorsten