Is there a way to change the z-index of the page-loader? I must probably check in the css…
I have a modal that uploads an image and then closes when done and updated, but the page loader is below the modal, so it defeats the object of letting the user know that something is happening.
Is it just my template or a general app connect modal/loader issue?
Thanks for feedback @Teodor and @ben! The progress bar makes sense. I just have a predicament in terms of UX… From the onslaught, maybe using a modal is wrong, but let’s just say it was the right choice… The user fills the fields and adds file to file field, then submits form, progress bar shows and buttons are disabled so they can’t manually close window… unless I do not care about it, since backend is already handling the submit request. I still have the close button on modal that can be used for closing before file upload is finished and then the user might also navigate to other page before upload is done… that is always my fear… user closing modal and navigating away.
Do you think above is still best for UX and data entry completeness?
It really does not matter if the modal is closed prior to the upload finishing, the action has already been triggered. If the modal has not been closed by the user, it can be closed automatically after the action has been successful
dmx-on:success="mdlProductImagesAdd.hide()"
I use the ‘mdl’ prefix to show that the element is a modal.
Thanks @ben I am just worried that they close the modal and navigate to other page while upload is still busy. I am in 3rd World Country So internet is not always that fast and uploads can take a while on slow connections. My usual method was using my own loader that covered the page till upload was done to prevent above scenario.
No worries Marcel. As I said, the action has already been triggered. Even if you were to close the browser before uploading has finished, the action will still be executed.
@ben first you have to add this to the modal html data-backdrop="static" data-keyboard="false"
this will prevent the back click to close the modal and disable the ESC button click to close it.
and you disable the button on the server connect start event then enabling it on the done event.
you can never stop the user from closing the browser or shutting his computer off
the server action will execute nevertheless and the user cant stop it. and he have to wait until its finish. isn’t this the required action?
@ben I think it is relevant if you are uploading files and that a open browser tab is needed to complete uploading, once the file is uploaded whatever happens on the server happens there. So my point is to not interfere with the browser to server uploads while they are busy. Thanks for your input guys