Skip to content

Commit

Permalink
Allow specifying whether local or all snapshots are shown by default …
Browse files Browse the repository at this point in the history
…in the UI
  • Loading branch information
PhracturedBlue committed Sep 11, 2023
1 parent 741fbd4 commit 3560137
Showing 1 changed file with 4 additions and 3 deletions.
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
}

0 comments on commit 3560137

Please sign in to comment.