rename customization -> design
This commit is contained in:
1 parent
32ef7a7097
commit
2135dfca96
4 files changed
+24
-24
No files matched your search
@@ -9,13 +9,13 @@ import (
|
||||
"msp-admin-service/conf"
|
||||
)
|
||||
|
||||
func GetUICustomization(metadata metadata.MD) (conf.UIConfig, error) {
|
||||
func GetUIDesign(metadata metadata.MD) (conf.UIDesign, error) {
|
||||
token := metadata.Get(adminAuthHeaderName)
|
||||
|
||||
if len(token) == 0 || token[0] == "" {
|
||||
log.Errorf(0, "Admin AUTH header: %s, not found, received: %v", adminAuthHeaderName, metadata)
|
||||
return conf.UIConfig{}, status.Error(codes.InvalidArgument, ServiceError)
|
||||
return conf.UIDesign{}, status.Error(codes.InvalidArgument, ServiceError)
|
||||
}
|
||||
|
||||
return config.GetRemote().(*conf.RemoteConfig).UiCustomization, nil
|
||||
return config.GetRemote().(*conf.RemoteConfig).UiDesign, nil
|
||||
}
|
||||
Reference in new issue
Block a user