Always use name and description from addonInfo when available

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
pull/4572/head
Jimmy Tanagra 2025-01-21 02:19:55 +10:00
parent 6dffaa6a8c
commit 3d21231cc9
1 changed files with 2 additions and 6 deletions

View File

@ -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 {