feat(preferences): theme and home dashbord settings now work work on profile and org settings page
This commit is contained in:
@@ -33,6 +33,7 @@ type CurrentUser struct {
|
||||
OrgRole m.RoleType `json:"orgRole"`
|
||||
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
|
||||
GravatarUrl string `json:"gravatarUrl"`
|
||||
Timezone string `json:"timezone"`
|
||||
}
|
||||
|
||||
type DashboardMeta struct {
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
package dtos
|
||||
|
||||
type UserPrefs struct {
|
||||
Theme string `json:"theme"`
|
||||
ThemeDefault string `json:"themeDefault"`
|
||||
HomeDashboardId int64 `json:"homeDashboardId"`
|
||||
HomeDashboardIdDefault int64 `json:"homeDashboardIdDefault"`
|
||||
Timezone string `json:"timezone"`
|
||||
TimezoneDefault string `json:"timezoneDefault"`
|
||||
type Prefs struct {
|
||||
Theme string `json:"theme"`
|
||||
HomeDashboardId int64 `json:"homeDashboardId"`
|
||||
Timezone string `json:"timezone"`
|
||||
}
|
||||
|
||||
type UpdateUserPrefsCmd struct {
|
||||
type UpdatePrefsCmd struct {
|
||||
Theme string `json:"theme"`
|
||||
HomeDashboardId int64 `json:"homeDashboardId"`
|
||||
Timezone string `json:"timezone"`
|
||||
|
||||
Reference in New Issue
Block a user