File tree 4 files changed +11
-7
lines changed
client/packages/lowcoder/src
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ type ChangeModeAction = {
208
208
useCodeEditor : boolean ;
209
209
} ;
210
210
211
- function IconControlView ( props : { value : string } ) {
211
+ export function IconControlView ( props : { value : string } ) {
212
212
const { value } = props ;
213
213
const icon = useIcon ( value ) ;
214
214
if ( icon ) {
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ function GenericOAuthForm(props: GenericOAuthFormProp) {
120
120
tokenEndpoint : res . data . token_endpoint ,
121
121
userInfoEndpoint : res . data . userinfo_endpoint ,
122
122
jwksUri : res . data . jwks_uri ,
123
- scope : res . data . scopes_supported . join ( ', ' ) ,
123
+ scope : res . data . scopes_supported . join ( ' ' ) ,
124
124
sourceMappings : sourceMappingKeys . map ( sourceKey => ( {
125
125
[ sourceKey ] : sourceKey ,
126
126
} ) )
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { currentOrgAdmin } from "../../../util/permissionUtils";
35
35
import CreateModal from "./createModal" ;
36
36
import _ from "lodash" ;
37
37
import { HelpText } from "components/HelpText" ;
38
+ import { IconControlView } from "@lowcoder-ee/comps/controls/iconControl" ;
38
39
39
40
export const IdSourceList = ( props : any ) => {
40
41
const user = useSelector ( getUser ) ;
@@ -137,10 +138,12 @@ export const IdSourceList = (props: any) => {
137
138
render = { ( value : AuthType , record : ConfigItem ) => (
138
139
< SpanStyled disabled = { authTypeDisabled ( value , enableEnterpriseLogin ) } >
139
140
{
140
- < img
141
- src = { ServerAuthTypeInfo [ value as AuthType ] ?. logo || GeneralLoginIcon }
142
- alt = { value }
143
- />
141
+ ( record as any ) . sourceIcon
142
+ ? < span className = "sourceIcon" > < IconControlView value = { ( record as any ) . sourceIcon } /> </ span >
143
+ : < img
144
+ src = { ServerAuthTypeInfo [ value as AuthType ] ?. logo || GeneralLoginIcon }
145
+ alt = { value }
146
+ />
144
147
}
145
148
< span >
146
149
{ value === AuthType . Generic
Original file line number Diff line number Diff line change @@ -62,10 +62,11 @@ export const SpanStyled = styled.div<{ disabled: boolean }>`
62
62
align-items: center;
63
63
height: 100%;
64
64
65
- img {
65
+ img, .sourceIcon {
66
66
width: 25px;
67
67
height: 25px;
68
68
margin-right: 12px;
69
+ text-align: center;
69
70
opacity: ${ ( props ) => props . disabled && "0.4" } ;
70
71
}
71
72
You can’t perform that action at this time.
0 commit comments