Skip to content

Commit

Permalink
feat: add dashboard name to dashboard settings response
Browse files Browse the repository at this point in the history
See: BEDS-94
  • Loading branch information
LuccaBitfly committed Oct 17, 2024
1 parent 76bd9f3 commit 436ed6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/api/data_access/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -1965,6 +1965,7 @@ func (d *DataAccessService) GetNotificationSettingsDashboards(ctx context.Contex
result = append(result, t.NotificationSettingsDashboardsTableRow{
IsAccountDashboard: setting.IsAccountDashboard,
DashboardId: setting.DashboardId,
DashboardName: setting.DashboardName,
GroupId: setting.GroupId,
GroupName: setting.GroupName,
Settings: setting.Settings,
Expand Down
1 change: 1 addition & 0 deletions backend/pkg/api/types/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ type InternalPutUserNotificationSettingsAccountDashboardResponse ApiDataResponse
type NotificationSettingsDashboardsTableRow struct {
IsAccountDashboard bool `json:"is_account_dashboard"` // if false it's a validator dashboard
DashboardId uint64 `json:"dashboard_id"`
DashboardName string `json:"dashboard_name"`
GroupId uint64 `json:"group_id"`
GroupName string `json:"group_name"`
// if it's a validator dashboard, Settings is NotificationSettingsAccountDashboard, otherwise NotificationSettingsValidatorDashboard
Expand Down
1 change: 1 addition & 0 deletions frontend/types/api/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export type InternalPutUserNotificationSettingsAccountDashboardResponse = ApiDat
export interface NotificationSettingsDashboardsTableRow {
is_account_dashboard: boolean; // if false it's a validator dashboard
dashboard_id: number /* uint64 */;
dashboard_name: string;
group_id: number /* uint64 */;
group_name: string;
/**
Expand Down

0 comments on commit 436ed6a

Please sign in to comment.