Always use name and description from addonInfo when available
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>pull/4572/head
parent
6dffaa6a8c
commit
3d21231cc9
|
@ -134,12 +134,8 @@ public class KarafAddonService implements AddonService {
|
|||
AddonInfo addonInfo = addonInfoRegistry.getAddonInfo(uid, locale);
|
||||
|
||||
if (addonInfo != null) {
|
||||
if (addonInfo.isMasterAddonInfo()) {
|
||||
addon = addon.withLabel(addonInfo.getName()).withDescription(addonInfo.getDescription());
|
||||
} else {
|
||||
addon = addon.withLabel(feature.getDescription());
|
||||
}
|
||||
addon = addon.withConnection(addonInfo.getConnection()).withCountries(addonInfo.getCountries())
|
||||
addon = addon.withLabel(addonInfo.getName()).withDescription(addonInfo.getDescription())
|
||||
.withConnection(addonInfo.getConnection()).withCountries(addonInfo.getCountries())
|
||||
.withLink(getDefaultDocumentationLink(type, name))
|
||||
.withConfigDescriptionURI(addonInfo.getConfigDescriptionURI());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue