Skip to content

Commit

Permalink
feat: ✨ added gallery sidebar column for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar-s committed Feb 5, 2024
1 parent 44d76cb commit d300f0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/strandls/userGroup/pojo/GroupGallerySlider.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class GroupGallerySlider {
private Long displayOrder;
private String readMoreText;
private String readMoreUIType;
private String gallerySidebar;

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
Expand Down Expand Up @@ -156,4 +157,13 @@ public void setReadMoreUIType(String readMoreUIType) {
this.readMoreUIType = readMoreUIType;
}

@Column(name = "gallery_sidebar", columnDefinition = "text default 'opaque'")
public String getGallerySidebar() {
return gallerySidebar;
}

public void setGallerySidebar(String gallerySidebar) {
this.gallerySidebar = gallerySidebar;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,7 @@ public GroupHomePageData editHomePage(HttpServletRequest request, Long userGroup
gallerySliderEntity.setDisplayOrder(editData.getDisplayOrder());
gallerySliderEntity.setReadMoreText(editData.getReadMoreText());
gallerySliderEntity.setReadMoreUIType(editData.getReadMoreUIType());
gallerySliderEntity.setGallerySidebar(editData.getGallerySidebar());

groupGallerySliderDao.update(gallerySliderEntity);
return getGroupHomePageData(userGroupId);
Expand Down

0 comments on commit d300f0d

Please sign in to comment.