Closed taoeffect closed 4 months ago
@taoeffect @dotmacro I'm investigating this issue right now.
Normally the modal that is queried later does show on top of the existing one but it's not the case for Prompt.vue
due to its z-index set to $zindex_modal + 5
.
(e.g. LoginModal
has been queried after Prompt
but Prompt is still placed on the top. But closeModal
method in Modal.vue
is still working based on the assumption that latest one
-> placed on the top
.)
This value is actually not incorrect because sometimes the error prompt needs to be shown for the error occurred within another modal e.g.) UserSettings.vue
, Group-creation steps modal etc.
The possible solution here will be making it possible to send a target modal name to closeModal
method. e.g.) sbp('okTurtles.events/emit', CLOSE_MODAL,'Prompt')
. I will send a PR once this work is done and verified.
Problem
https://github.com/user-attachments/assets/98a97269-1cd7-4368-abe0-d681d0fd7efc
A recent PR updated how the modal system works. Here's an example of a problem that still exists. You can reproduce this with the following steps:
grunt dev
and create a groupgrunt dev
grunt dev
again and wait for the server to be fully runningSolution
Find and fix the problem, making sure to test thoroughly the existing modals in the group, especially any modals-in-modals, e.g. when the group settings or user settings are up and then a modal is brought up inside of one of those.
In this situation the modal at the top should be dismissed first.