Skip to content
Snippets Groups Projects
Commit b9319a68 authored by Lars Brodin Østby's avatar Lars Brodin Østby
Browse files

little update on the validation thing

parent 7e1d1bd6
No related branches found
No related tags found
2 merge requests!165Weekly merge to Master,!132Need valdig title at album
......@@ -164,9 +164,12 @@ public class CreateAlbum implements Initializable {
List<Tag> tagsToAdd = TagService.getTagsFromString(tags);
User user = ApplicationState.getCurrentUser();
//temporary solution for the toString problem with album log creation
if (description.isEmpty()) {
description = "No desripton";
}
} if (tags.isEmpty()){
tags = " ";
}
List<Node> imageContainers = new ArrayList<>(fileContainer.getChildren());
List<String> checkedImagesId = new ArrayList<>();
......@@ -208,6 +211,10 @@ public class CreateAlbum implements Initializable {
}
}
/**
* Makes sure that user gave the album a title
* @return
*/
private boolean validateInpid() {
boolean check = true;
if (album_title_field.getText().isEmpty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment