Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Team 14 - IDATT1002
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eirik Steira
Team 14 - IDATT1002
Commits
b9319a68
Commit
b9319a68
authored
5 years ago
by
Lars Brodin Østby
Browse files
Options
Downloads
Patches
Plain Diff
little update on the validation thing
parent
7e1d1bd6
No related branches found
No related tags found
2 merge requests
!165
Weekly merge to Master
,
!132
Need valdig title at album
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/NTNU/IDATT1002/controllers/CreateAlbum.java
+8
-1
8 additions, 1 deletion
src/main/java/NTNU/IDATT1002/controllers/CreateAlbum.java
with
8 additions
and
1 deletion
src/main/java/NTNU/IDATT1002/controllers/CreateAlbum.java
+
8
−
1
View file @
b9319a68
...
...
@@ -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
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment