mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
initial expanded view support (#62)
This commit is contained in:
@@ -22,6 +22,10 @@ public class UserSettings extends AbstractModel {
|
||||
asc, desc
|
||||
}
|
||||
|
||||
public enum ViewMode {
|
||||
title, expanded
|
||||
}
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "user_id", nullable = false)
|
||||
private User user;
|
||||
@@ -34,6 +38,10 @@ public class UserSettings extends AbstractModel {
|
||||
@Column(nullable = false)
|
||||
private ReadingOrder readingOrder;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(nullable = false)
|
||||
private ViewMode viewMode;
|
||||
|
||||
private boolean showRead;
|
||||
|
||||
private boolean socialButtons;
|
||||
@@ -90,4 +98,12 @@ public class UserSettings extends AbstractModel {
|
||||
this.socialButtons = socialButtons;
|
||||
}
|
||||
|
||||
public ViewMode getViewMode() {
|
||||
return viewMode;
|
||||
}
|
||||
|
||||
public void setViewMode(ViewMode viewMode) {
|
||||
this.viewMode = viewMode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user