Handle close GlobalSearchModal gracefully#41792
Merged
Conversation
ChristophWurst
approved these changes
Nov 28, 2023
Member
ChristophWurst
left a comment
There was a problem hiding this comment.
Code looks good. Didn't test
Member
|
/backport to stable28 |
artonge
approved these changes
Nov 28, 2023
Contributor
artonge
left a comment
There was a problem hiding this comment.
I think that using the .sync modifier can help in such cases: https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier
But code looks good like that
6f3bf8d to
02525ed
Compare
02525ed to
56c5e75
Compare
Member
|
/compile amend / |
AndyScherzinger
approved these changes
Nov 29, 2023
56c5e75 to
fa27fd3
Compare
The current close infrastructure modifies a prop which has no real effect aside bugs. In addition, calling the `NcModal.close()` as the primary way to close the search modal instead of using the states defined in `GlobalSearch` view causing re-open bugs (Modal cannot open, needs to click twice, and other weird stuff). Signed-off-by: fenn-cs <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
fa27fd3 to
0d938cc
Compare
Member
|
/compile / |
Signed-off-by: nextcloud-command <[email protected]>
susnux
approved these changes
Nov 29, 2023
Contributor
|
drone error unrelated |
nfebe
pushed a commit
that referenced
this pull request
Nov 29, 2023
Handle close GlobalSearchModal gracefully
Contributor
Author
|
/backport to stable28 |
nfebe
added a commit
that referenced
this pull request
Nov 30, 2023
[stable28] Handle close GlobalSearchModal gracefully #41792
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorts out re-opening errors, such as needing two clicks after clicking outside, or modal flashes.
The current close infrastructure modifies a prop which has no real effect aside bugs.
In addition, calling the
NcModal.close()as the primary way to close the search modal instead of using the states defined inGlobalSearchview causing re-open bugs (Modal cannot open, needs to click twice, and other weird stuff).Contributes to #41381