Added a Config page. Currently unreachable.
This commit is contained in:
parent
b115a9cb4f
commit
ee19d84434
11 changed files with 157 additions and 27 deletions
|
|
@ -56,15 +56,16 @@ public class ServicePage implements WAPage {
|
|||
this.rootStatusPage = new ServiceStatusPage(pluginManager);
|
||||
this.statusPages = new ArrayList<>();
|
||||
|
||||
WANavigation nav = WANavigation.getRootNav(NAVIGATION_NAME);
|
||||
WANavigation nav = WANavigation.createRootNav(NAVIGATION_NAME);
|
||||
nav.setResource(this);
|
||||
for(WAService plugin : services) {
|
||||
statusPages.add(new ServiceStatusPage(plugin.getStatus()));
|
||||
|
||||
WANavigation serviceNav = nav.getSubNav(plugin.getName());
|
||||
WANavigation serviceNav = nav.createSubNav(plugin.getName());
|
||||
serviceNav.setResource(plugin);
|
||||
for(WAServiceConfig conf : plugin.getConfigurations()){
|
||||
//serviceNav.getSubNav(conf.getName()).setResource(conf);
|
||||
serviceNav.createSubNav(conf.getName())
|
||||
.setResource(new ConfigPage(conf));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue