Skip to content

Conversation

@tf
Copy link
Member

@tf tf commented Jan 8, 2021

Before the paged entry type was extracted, the editor used the same
layout as the published entries. Once the paged entries used their own
layout [1], the editor got a separate layout [2] and everything
related to Paged was removed [3]. We missed that the loading spinner
inline script was also needed inside the editor to ensure the preview
could be displayed. Add it back to the paged head editor partial.

We also could have added the rule to an editor stylesheet, but that
would have meant introducing a third place where loading spinner
display is controlled. This way editor and published entry work the
same way.

REDMINE-17738

[1] b076267#diff-d6c740536eb9bfa6732ef7dfa73df647cae865b6d4a0f7d48ea309ded4c745aa
[2] 1ee34a9#diff-bf899f40e327b5be0b920c45d6a8602eddfbd0bdbf90e1cdd312c696cec13ec9
[3] e83409d#diff-bf899f40e327b5be0b920c45d6a8602eddfbd0bdbf90e1cdd312c696cec13ec9

Before the paged entry type was extracted, the editor used the same
layout as the published entries. Once the paged entries used their own
layout [1], the editor got a separate layout [2] and everything
related to Paged was removed [3]. We missed that the loading spinner
inline script was also needed inside the editor to ensure the preview
could be displayed. Add it back to the paged head editor partial.

We also could have added the rule to an editor stylesheet, but that
would have meant introducing a third place where loading spinner
display is controlled. This way editor and published entry work the
same way.

REDMINE-17738

[1] codevise@b076267#diff-d6c740536eb9bfa6732ef7dfa73df647cae865b6d4a0f7d48ea309ded4c745aa
[2] codevise@1ee34a9#diff-bf899f40e327b5be0b920c45d6a8602eddfbd0bdbf90e1cdd312c696cec13ec9
[3] codevise@e83409d#diff-bf899f40e327b5be0b920c45d6a8602eddfbd0bdbf90e1cdd312c696cec13ec9
@tf tf added this to the v15.4 milestone Jan 8, 2021
@tf tf mentioned this pull request Jan 8, 2021
@tf tf merged commit 7e63130 into codevise:master Jan 8, 2021
@tf tf deleted the classic-loading-spinner-preview branch January 8, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant