Skip to content

Commit

Permalink
Merge pull request eclipse-hawkbit#330 from bsinno/fix_type_tag_color…
Browse files Browse the repository at this point in the history
…change_detail

fix add and update tags and type color change details
  • Loading branch information
michahirsch authored Oct 27, 2016
2 parents 39712b9 + 3bd1c93 commit 2488995
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,16 @@ protected void addListeners() {
private void previewButtonClicked() {
if (!tagPreviewBtnClicked) {
final String selectedOption = (String) optiongroup.getValue();
if (selectedOption == null || !selectedOption.equalsIgnoreCase(updateTagStr)) {
if (selectedOption == null) {
return;
}

if (tagNameComboBox.getValue() == null) {
colorPickerLayout
.setSelectedColor(ColorPickerHelper.rgbToColorConverter(ColorPickerConstants.DEFAULT_COLOR));
return;
} else {
colorPickerLayout.setSelectedColor(getColorForColorPicker());
}
colorPickerLayout.setSelectedColor(getColorForColorPicker());
}

tagPreviewBtnClicked = !tagPreviewBtnClicked;
Expand Down

0 comments on commit 2488995

Please sign in to comment.