Commit b5e26ef4 authored by Martin Slind Hagen's avatar Martin Slind Hagen 🏑 Committed by Hermann Owren Elton
Browse files

Fixed so you can't download an album with no photos

parent 81c2f951
......@@ -151,7 +151,11 @@ final class AlbumDetailsRoot extends SceneRoot {
});
} else {
showAlbumIsEmpty();
PDF_BUTTON.setDisable(true);
}
DELETE_ALBUM.setOnAction(e -> {
UserInfo.getUser().getAlbums().remove(album);
Hibernate.updateUser(UserInfo.getUser());
......@@ -194,8 +198,10 @@ final class AlbumDetailsRoot extends SceneRoot {
}
});
Hibernate.updateUser(UserInfo.getUser());
}
if (albumPhotoList.isEmpty()) {
PDF_BUTTON.setDisable(true);
showAlbumIsEmpty();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment