Moved dashboard theme option from the dashboard to a persisted user setting, #1458

This commit is contained in:
Torkel Ödegaard
2015-02-28 14:30:08 +01:00
parent 962b316bcf
commit 04ca85fe89
15 changed files with 56 additions and 35 deletions

View File

@@ -48,6 +48,7 @@ type UpdateUserCommand struct {
Name string `json:"name"`
Email string `json:"email"`
Login string `json:"login"`
Theme string `json:"theme"`
UserId int64 `json:"-"`
}
@@ -91,9 +92,9 @@ type GetSignedInUserQuery struct {
Result *SignedInUser
}
type GetUserInfoQuery struct {
type GetUserProfileQuery struct {
UserId int64
Result UserDTO
Result UserProfileDTO
}
type SearchUsersQuery struct {
@@ -120,14 +121,16 @@ type SignedInUser struct {
Login string
Name string
Email string
Theme string
ApiKeyId int64
IsGrafanaAdmin bool
}
type UserDTO struct {
type UserProfileDTO struct {
Email string `json:"email"`
Name string `json:"name"`
Login string `json:"login"`
Theme string `json:"theme"`
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
}