discourse/plugins
David Taylor ed2dae6d1a
FIX: Ensure dialogs are still rendered if triggered during boot (#22511)
When the loading slider is enabled, the rendering of `application.hbs` is slightly delayed compared to the old 'spinner' strategy. This means that if a route tried to render a dialog during its `model()` hook, the dialog wrapper element would not be present and an error would occur.

This commit detects that situation and delays rendering the error until the next runloop iteration. If the element is still not found, we print a useful error to the console.

In the long term, we should ideally convert the dialog service to use a pure-ember rendering strategy instead of leaning on a11y-dialog. But for now, this workaround should resolve the problems identified by the chat system specs.
2023-07-10 11:29:04 +01:00
..
chat FIX: Ensure dialogs are still rendered if triggered during boot (#22511) 2023-07-10 11:29:04 +01:00
discourse-details Update translations (#22300) 2023-06-27 16:39:27 +02:00
discourse-lazy-videos FIX: Allow to use %h%m%s for youtube t param (#22299) 2023-07-03 10:39:37 -03:00
discourse-local-dates DEV: Update moment-timezone-with-data (#22313) 2023-06-28 11:33:55 +02:00
discourse-narrative-bot Update translations (#22081) 2023-06-13 15:18:44 +02:00
discourse-presence FEATURE: Separated 'trusted users can edit others' setting for trust level 3 & 4 (#21493) 2023-07-07 10:48:14 -05:00
poll DEV: Cleanup an old spec (#22503) 2023-07-10 11:34:17 +08:00
styleguide DEV: Support rendering <DModal> as a <form> element (#22507) 2023-07-10 10:28:45 +01:00