discourse/app
Isaac Janzen a5b810fe18
FIX: Flashing history modal when changing versions (#22785)
## Problem
History modal is flashing when changing revision versions

## Context
This was introduced in https://github.com/discourse/discourse/pull/22666

We need to have a conditional loading spinner for the initial paint of the history modal as we don't have the revision yet loaded, so this can cause some odd rendering issues. At the same time we don't want to display the loading spinner each time we toggle between the revision versions, because the loading spinner replaces the revision body causing the modal sizes to be drastically different resulting in _jumping_ or _flashing_.

## Fix
Render the loading spinner only on the first paint of the modal.

https://github.com/discourse/discourse/assets/50783505/8d19275e-86a5-4132-8a1f-af4b4f5301a6
2023-07-26 11:08:59 -05:00
..
assets FIX: Flashing history modal when changing versions (#22785) 2023-07-26 11:08:59 -05:00
controllers FEATURE: Regenerate outdated summaries. (#22718) 2023-07-20 15:25:46 -03:00
helpers SECURITY: Don't reuse CSP nonce between requests (#22544) 2023-07-11 15:24:36 -06:00
jobs DEV: Replace raw comments with deprecation warnings (#22617) 2023-07-18 10:13:40 +08:00
mailers FIX: Order tags shown in email subject by topics count and name (#22586) 2023-07-13 15:39:58 +08:00
models DEV: Remove deprecated whitelist methods (#22731) 2023-07-21 11:32:21 +08:00
serializers UX: Display tag's description as title in navigation menu (#22710) 2023-07-24 08:07:37 +08:00
services DEV: Handle SSL errors in push notification pusher (#22771) 2023-07-25 15:01:02 +08:00
views SECURITY: Don't reuse CSP nonce between requests (#22544) 2023-07-11 15:24:36 -06:00