mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Activity panel: Limit visual glitches on entries on first display by hiding them all before displaying only the relevant.
Otherwise, entries from the other logs / activity tabs are visible for a second before filtering on the entry of the current tab only.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
{% set oFirstEntry = aEntryGroup.entries|first %}
|
||||
<div class="ibo-activity-panel--entry-group {% if oFirstEntry.IsFromCurrentUser() %}ibo-is-current-user{% endif %}"
|
||||
{# Note: Entry groups are hidden by default to avoid a visual glitch. #]
|
||||
{# Otherwise when the page is loaded, all the entry groups are displayed for a brief moment, then they are filtered on the options of the currently displayed tab #}
|
||||
<div class="ibo-activity-panel--entry-group {% if oFirstEntry.IsFromCurrentUser() %}ibo-is-current-user{% endif %} ibo-is-hidden"
|
||||
data-role="ibo-activity-panel--entry-group"
|
||||
data-entry-group-author-login="{{ oFirstEntry.GetAuthorLogin() }}"
|
||||
data-entry-group-origin="{{ oFirstEntry.GetOrigin() }}">
|
||||
|
||||
Reference in New Issue
Block a user