mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
22 lines
718 B
Go
22 lines
718 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
admin_pb "github.com/zitadel/zitadel/pkg/grpc/admin"
|
|
)
|
|
|
|
func updateLabelPolicyToDomain(policy *admin_pb.UpdateLabelPolicyRequest) *domain.LabelPolicy {
|
|
return &domain.LabelPolicy{
|
|
PrimaryColor: policy.PrimaryColor,
|
|
BackgroundColor: policy.BackgroundColor,
|
|
WarnColor: policy.WarnColor,
|
|
FontColor: policy.FontColor,
|
|
PrimaryColorDark: policy.PrimaryColorDark,
|
|
BackgroundColorDark: policy.BackgroundColorDark,
|
|
WarnColorDark: policy.WarnColorDark,
|
|
FontColorDark: policy.FontColorDark,
|
|
HideLoginNameSuffix: policy.HideLoginNameSuffix,
|
|
DisableWatermark: policy.DisableWatermark,
|
|
}
|
|
}
|