[MGNLUI-6518] Pass AdmincentralErrorHandler to dialogs so they have access to it when detached from UI Created: 21/Jan/21 Updated: 27/Jan/21 Resolved: 22/Jan/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.6 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Šimon Demočko | Assignee: | Šimon Demočko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 6h 32m | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Sprint: | UI FW 20 | ||||||||||||
| Story Points: | 0 | ||||||||||||
| Description |
ContextAdmincentralErrorHandler is the errorHandler of ResurfaceUI. Dialogs (as Windows) are attached to ResurfaceUI. When errorHandler is looked up it is taken from the parent - ResurfaceUI. Dialogs are sometimes detached from UI, yet, they may cause an error right afterwards... Current situation.. at that point, AdmincentralErrorHandler is unreachable, since ResurfaceUI is not reachable. Errors do not generate pulse messages, so no banner is shown for errors, like in Desired situationPass AdmincentralErrorHandler as error handler of the dialog's window. This way detached dialogs can still pass errors to AEH, who will generate visible error banners as pulse messages. |