Skip to content

Commit 1b0d540

Browse files
authored
Prevent flickering of announcements (#1160)
On initial loading, the empty announcements component is shown as styled in the css. This is fixed by initially hiding the component until announcements are shown. Co-authored-by: KochTobi <kochtobi@users.noreply.github.com>
1 parent 8bc2d9d commit 1b0d540

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

user-interface/src/main/java/life/qbic/datamanager/announcements/AnnouncementComponent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class AnnouncementComponent extends Div {
3131
public AnnouncementComponent(AnnouncementService announcementService) {
3232
this.announcementService = announcementService;
3333
this.setId("announcements");
34+
this.setVisible(false); //without subscribing to announcements nothing is displayed
3435
}
3536

3637
private void subscribeToAnnouncements() {

0 commit comments

Comments
 (0)