File tree Expand file tree Collapse file tree
user-home/src/main/java/io/imunity/home/views/trusted_application Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,24 +73,23 @@ private void refresh()
7373 VerticalLayout mainLayout = new VerticalLayout ();
7474 getContent ().add (mainLayout );
7575
76- if (applications .isEmpty ())
76+
77+
78+ List <IdPClientData > allowedApplications = controller .filterAllowedApplications (applications );
79+ H2 title = new H2 (msg .getMessage ("TrustedApplications.applicationsWithAccess" ));
80+ title .getStyle ()
81+ .set ("margin" , "0" );
82+ mainLayout .add (title );
83+ if (allowedApplications .isEmpty ())
7784 {
78- H3 info = new H3 (msg .getMessage ("TrustedApplications.noneTrustedApplications" ));
79- mainLayout .add (info );
80- return ;
81- }
85+ mainLayout .add (new H4 (msg .getMessage ("TrustedApplications.noneTrustedApplications" )));
8286
83- List <IdPClientData > allowedApplications = controller .filterAllowedApplications (applications );
84- if (!allowedApplications .isEmpty ())
87+ } else
8588 {
8689 Accordion accordion = new Accordion ();
8790 accordion .setWidthFull ();
8891 accordion .close ();
8992 allowedApplications .forEach (app -> accordion .add (createPanel (app )));
90- H2 title = new H2 (msg .getMessage ("TrustedApplications.applicationsWithAccess" ));
91- title .getStyle ()
92- .set ("margin" , "0" );
93- mainLayout .add (title );
9493 mainLayout .add (accordion );
9594 }
9695
You can’t perform that action at this time.
0 commit comments