Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): Allow specifying whether local or all snapshots are shown by default #3289

Merged
merged 1 commit into from Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions internal/serverapi/serverapi.go
Expand Up @@ -289,7 +289,8 @@ type CLIInfo struct {

// UIPreferences represents JSON object storing UI preferences.
type UIPreferences struct {
BytesStringBase2 bool `json:"bytesStringBase2"` // If `true`, display storage values in base-2 (default is base-10)
Theme string `json:"theme"` // 'dark', 'light' or ''
PageSize int `json:"pageSize"` // A page size; the actual possible values will only be provided by the frontend
BytesStringBase2 bool `json:"bytesStringBase2"` // If `true`, display storage values in base-2 (default is base-10)
DefaultSnapshotViewAll bool `json:"defaultSnapshotViewAll"` // If `true` default to showing all snapshots (default is local snapshots)
Theme string `json:"theme"` // 'dark', 'light' or ''
PageSize int `json:"pageSize"` // A page size; the actual possible values will only be provided by the frontend
}