mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
package management
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
mgmt_pb "github.com/zitadel/zitadel/pkg/grpc/management"
|
|
)
|
|
|
|
func addLabelPolicyToDomain(p *mgmt_pb.AddCustomLabelPolicyRequest) *domain.LabelPolicy {
|
|
return &domain.LabelPolicy{
|
|
PrimaryColor: p.PrimaryColor,
|
|
BackgroundColor: p.BackgroundColor,
|
|
WarnColor: p.WarnColor,
|
|
PrimaryColorDark: p.PrimaryColorDark,
|
|
BackgroundColorDark: p.BackgroundColorDark,
|
|
WarnColorDark: p.WarnColorDark,
|
|
HideLoginNameSuffix: p.HideLoginNameSuffix,
|
|
DisableWatermark: p.DisableWatermark,
|
|
}
|
|
}
|
|
|
|
func updateLabelPolicyToDomain(p *mgmt_pb.UpdateCustomLabelPolicyRequest) *domain.LabelPolicy {
|
|
return &domain.LabelPolicy{
|
|
PrimaryColor: p.PrimaryColor,
|
|
BackgroundColor: p.BackgroundColor,
|
|
WarnColor: p.WarnColor,
|
|
FontColor: p.FontColor,
|
|
PrimaryColorDark: p.PrimaryColorDark,
|
|
BackgroundColorDark: p.BackgroundColorDark,
|
|
WarnColorDark: p.WarnColorDark,
|
|
FontColorDark: p.FontColorDark,
|
|
HideLoginNameSuffix: p.HideLoginNameSuffix,
|
|
DisableWatermark: p.DisableWatermark,
|
|
}
|
|
}
|