diff options
Diffstat (limited to 'app/controllers/dashboard')
| -rw-r--r-- | app/controllers/dashboard/controller.go | 6 | ||||
| -rw-r--r-- | app/controllers/dashboard/dto.go | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/dashboard/controller.go b/app/controllers/dashboard/controller.go index 106666b..02238bb 100644 --- a/app/controllers/dashboard/controller.go +++ b/app/controllers/dashboard/controller.go @@ -31,10 +31,8 @@ func (c *Controller) Show(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) w.Header().Add("Content-Type", "text/html") - if err := views.Render(w, "dashboard/show", &ViewDashboardDTO{ - CurrentUser: currentUser, - Sparkles: []string{}, - }); err != nil { + dto := &ViewDashboardDTO{CurrentUser: currentUser} + if err := views.Render(w, "dashboard/show", dto); err != nil { log.WithFields(r.Context(), log.Fields{"error": err}) w.WriteHeader(http.StatusInternalServerError) return diff --git a/app/controllers/dashboard/dto.go b/app/controllers/dashboard/dto.go index 4243adc..ff587ae 100644 --- a/app/controllers/dashboard/dto.go +++ b/app/controllers/dashboard/dto.go @@ -4,6 +4,4 @@ import "gitlab.com/gitlab-org/software-supply-chain-security/authorization/spark type ViewDashboardDTO struct { CurrentUser *domain.User - Sparkles []string - Title string } |
