mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-24 08:30:27 +00:00
Rework service description
This commit is contained in:
parent
5b01540c98
commit
12e2679692
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ public abstract class AbstractServiceGroupStoreProvider implements DataStoreProv
|
|||
return Bindings.createStringBinding(() -> {
|
||||
var all = section.getAllChildren().getList();
|
||||
var shown = section.getShownChildren().getList();
|
||||
if (shown.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var string = all.size() == shown.size() ? all.size() : shown.size() + "/" + all.size();
|
||||
return all.size() > 0 ? (all.size() == 1 ? AppI18n.get("hasService", string) : AppI18n.get("hasServices", string)) : AppI18n.get("noServices");
|
||||
}, section.getShownChildren().getList(), section.getAllChildren().getList(), AppPrefs.get().language());
|
||||
|
|
Loading…
Reference in a new issue