-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: organization branding #258
Conversation
Signed-off-by: Philip Miglinci <pmig@glasskube.com>
frontend/cloud-ui/src/app/organization-branding/organization-branding.component.ts
Show resolved
Hide resolved
frontend/cloud-ui/src/app/organization-branding/organization-branding.component.ts
Show resolved
Hide resolved
frontend/cloud-ui/src/app/organization-branding/organization-branding.component.html
Outdated
Show resolved
Hide resolved
frontend/cloud-ui/src/app/organization-branding/organization-branding.component.html
Outdated
Show resolved
Hide resolved
frontend/cloud-ui/src/app/organization-branding/organization-branding.component.ts
Show resolved
Hide resolved
frontend/cloud-ui/src/app/organization-branding/organization-branding.component.html
Outdated
Show resolved
Hide resolved
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
func OrganizationBrandingRouter(r chi.Router) { | ||
r.Get("/", getOrganizationBranding) | ||
r.With(requireUserRoleVendor).Group(func(r chi.Router) { | ||
r.Post("/", createOrganizationBranding) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on another note, we could have simply done only one PUT request, because PUT means both create or update, and by reading the path variable (branding id) we could decide whether to do a database insert or update. Because the two endpoints are the same code except for the db call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- as long as a user can only be in one organization (which will of course change), there is no need for the branding ID in the path, it can only ever be the branding object of the current organization (which is in the token)
frontend/cloud-ui/src/app/components/nav-bar/nav-bar.component.ts
Outdated
Show resolved
Hide resolved
frontend/cloud-ui/src/app/services/organization-branding.service.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Jakob Steiner <kosmoz@users.noreply.github.com>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
Signed-off-by: christophenne <christoph.enne@glasskube.eu>
…randing.component.html Co-authored-by: Jakob Steiner <kosmoz@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Philip Miglinci <pmig@glasskube.com>
Signed-off-by: Philip Miglinci <pmig@glasskube.com>
Signed-off-by: Philip Miglinci <pmig@glasskube.com>
No description provided.