|
|
|
@ -159,10 +159,10 @@ public class OnlineWidgetPopupPreviewPane extends AbstractWidgetPopupPreviewPane
|
|
|
|
|
@Override |
|
|
|
|
public void populateBean(PreviewWidgetBlock<OnlineShareWidget> block) { |
|
|
|
|
OnlineShareWidget widget = block.getWidget(); |
|
|
|
|
OnlineShareWidget parentPackage = widget.getParentPackage(); |
|
|
|
|
if (parentPackage != null && StringUtils.isNotEmpty(parentPackage.getThemeName())) { |
|
|
|
|
String themeName = widget.getThemeName(); |
|
|
|
|
if (StringUtils.isNotEmpty(themeName)) { |
|
|
|
|
suitableThemeNamePane.setVisible(true); |
|
|
|
|
suitableThemeNameLabel.setText(parentPackage.getThemeName()); |
|
|
|
|
suitableThemeNameLabel.setText(themeName); |
|
|
|
|
} else { |
|
|
|
|
suitableThemeNamePane.setVisible(false); |
|
|
|
|
} |
|
|
|
|