Merge pull request #330 from bsinno/fix_type_tag_colorchange_detail
fix add and update tags and type color change details
This commit is contained in:
@@ -253,17 +253,17 @@ public abstract class AbstractCreateUpdateTagLayout<E extends NamedEntity> exten
|
|||||||
private void previewButtonClicked() {
|
private void previewButtonClicked() {
|
||||||
if (!tagPreviewBtnClicked) {
|
if (!tagPreviewBtnClicked) {
|
||||||
final String selectedOption = (String) optiongroup.getValue();
|
final String selectedOption = (String) optiongroup.getValue();
|
||||||
if (selectedOption == null || !selectedOption.equalsIgnoreCase(updateTagStr)) {
|
if (selectedOption == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tagNameComboBox.getValue() == null) {
|
if (tagNameComboBox.getValue() == null) {
|
||||||
colorPickerLayout
|
colorPickerLayout
|
||||||
.setSelectedColor(ColorPickerHelper.rgbToColorConverter(ColorPickerConstants.DEFAULT_COLOR));
|
.setSelectedColor(ColorPickerHelper.rgbToColorConverter(ColorPickerConstants.DEFAULT_COLOR));
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
colorPickerLayout.setSelectedColor(getColorForColorPicker());
|
colorPickerLayout.setSelectedColor(getColorForColorPicker());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tagPreviewBtnClicked = !tagPreviewBtnClicked;
|
tagPreviewBtnClicked = !tagPreviewBtnClicked;
|
||||||
colorPickerLayout.setVisible(tagPreviewBtnClicked);
|
colorPickerLayout.setVisible(tagPreviewBtnClicked);
|
||||||
|
|||||||
Reference in New Issue
Block a user