Managed empty service list.

This commit is contained in:
Christian P. MOMON 2020-10-28 18:21:37 +01:00
parent ffbfde3fdd
commit 9d6dbf24d2

View file

@ -57,6 +57,12 @@ public class ServiceListView
TagDataManager data = new TagDataManager(); TagDataManager data = new TagDataManager();
if (services.isEmpty())
{
data.setAttribute("serviceListLine", "class", "xid:nodisplay");
}
else
{
int index = 0; int index = 0;
for (Service service : services.sortByName()) for (Service service : services.sortByName())
{ {
@ -158,7 +164,7 @@ public class ServiceListView
index += 1; index += 1;
} }
}
result = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml", data).toString(); result = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml", data).toString();
result = XidynUtils.extractBodyContent(result); result = XidynUtils.extractBodyContent(result);
} }