Browser context menu appears when opening a modal dialog on custom command
While adapting the images plugin, my custom command "Resize" needs more user input on the desired resize parameters. A problem I face/d is tjat I don't know all available mount
points provided by the various plugins that make up the webclient. Gitlab code search doesn't help me with that.
Now I've managed to open a element-ui modal dialog in the handler of the "Resize" command but I have the following problems with it:
Q1. It doesn't sound right to e.g., mount the modal image resize dialog into toolbar-left
. Do we need a mount point for modal-dialogs? Can I skip the mount
property when I register my vue-component? My first observation is: No, I can't.
Q2: After several attemps I've succeeded nonetheless, but I have the following problem: The modal mask appears after my "Resize" command handler has dispatched the action but with the browser context menu! Does anyone how I can supress this?
Here you see the code currently involved in that, in particular the following three files, starting from here: https://github.com/mukil/dm4-images/commit/882b2f2c29dc6f8a5099011a59de74ff6ccad072#diff-df6d0d54b5b75f1a03ab646f649f07e5R1
FYI @jri