Skip to content

Commit

Permalink
Merge pull request #141 from OsiriX-Foundation/feat/project_labels_pl…
Browse files Browse the repository at this point in the history
…aceholder_profile_combo

feat: modify Project labels + set placeholder ProfileDropDown
  • Loading branch information
cicciu authored May 5, 2021
2 parents e719186 + d560c01 commit cf94f33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

public class ProfileDropDown extends ComboBox<ProfileEntity> {

public ProfileDropDown() {}
public ProfileDropDown() {
// Place Holder
setPlaceholder("Select Profile");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private void setElements() {

textResearchName.setWidth("20%");
textResearchName.getStyle().set("padding-right", "10px");
textResearchName.setPlaceholder("Research Name");
textResearchName.setPlaceholder("Enter Name");
}

public Button getButtonAdd() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private Binder<ProjectEntity> setBinder() {
Binder<ProjectEntity> binder = new BeanValidationBinder<>(ProjectEntity.class);
binder
.forField(textResearchName)
.withValidator(StringUtils::isNotBlank, "Research name is mandatory")
.withValidator(StringUtils::isNotBlank, "Name is mandatory")
.bind(ProjectEntity::getName, ProjectEntity::setName);
binder
.forField(textSecret)
Expand Down

0 comments on commit cf94f33

Please sign in to comment.