@@ -843,7 +843,7 @@ class ProviderEditPage extends React.Component {
843
843
)
844
844
}
845
845
{
846
- this . state . provider . type !== "ADFS" && this . state . provider . type !== "AzureAD" && this . state . provider . type !== "AzureADB2C" && this . state . provider . type !== "Casdoor" && this . state . provider . type !== "Okta" ? null : (
846
+ this . state . provider . type !== "ADFS" && this . state . provider . type !== "AzureAD" && this . state . provider . type !== "AzureADB2C" && ( this . state . provider . type !== "Casdoor" && this . state . category !== "Storage" ) && this . state . provider . type !== "Okta" ? null : (
847
847
< Row style = { { marginTop : "20px" } } >
848
848
< Col style = { { marginTop : "5px" } } span = { 2 } >
849
849
{ Setting . getLabel ( i18next . t ( "provider:Domain" ) , i18next . t ( "provider:Domain - Tooltip" ) ) } :
@@ -870,7 +870,7 @@ class ProviderEditPage extends React.Component {
870
870
</ Col >
871
871
</ Row >
872
872
) }
873
- { [ "Custom HTTP SMS" , "Local File System" , "MinIO" , "Tencent Cloud COS" , "Google Cloud Storage" , "Qiniu Cloud Kodo" , "Synology" ] . includes ( this . state . provider . type ) ? null : (
873
+ { [ "Custom HTTP SMS" , "Local File System" , "MinIO" , "Tencent Cloud COS" , "Google Cloud Storage" , "Qiniu Cloud Kodo" , "Synology" , "Casdoor" ] . includes ( this . state . provider . type ) ? null : (
874
874
< Row style = { { marginTop : "20px" } } >
875
875
< Col style = { { marginTop : "5px" } } span = { 2 } >
876
876
{ Setting . getLabel ( i18next . t ( "provider:Endpoint (Intranet)" ) , i18next . t ( "provider:Region endpoint for Intranet" ) ) } :
@@ -885,7 +885,9 @@ class ProviderEditPage extends React.Component {
885
885
{ [ "Custom HTTP SMS" , "Local File System" ] . includes ( this . state . provider . type ) ? null : (
886
886
< Row style = { { marginTop : "20px" } } >
887
887
< Col style = { { marginTop : "5px" } } span = { 2 } >
888
- { Setting . getLabel ( i18next . t ( "provider:Bucket" ) , i18next . t ( "provider:Bucket - Tooltip" ) ) } :
888
+ { [ "Casdoor" ] . includes ( this . state . provider . type ) ?
889
+ Setting . getLabel ( i18next . t ( "general:Provider" ) , i18next . t ( "provider:Provider - Tooltip" ) )
890
+ : Setting . getLabel ( i18next . t ( "provider:Bucket" ) , i18next . t ( "provider:Bucket - Tooltip" ) ) } :
889
891
</ Col >
890
892
< Col span = { 22 } >
891
893
< Input value = { this . state . provider . bucket } onChange = { e => {
@@ -906,7 +908,7 @@ class ProviderEditPage extends React.Component {
906
908
</ Col >
907
909
</ Row >
908
910
) }
909
- { [ "Custom HTTP SMS" , "Qiniu Cloud Kodo" , "Synology" ] . includes ( this . state . provider . type ) ? null : (
911
+ { [ "Custom HTTP SMS" , "Qiniu Cloud Kodo" , "Synology" , "Casdoor" ] . includes ( this . state . provider . type ) ? null : (
910
912
< Row style = { { marginTop : "20px" } } >
911
913
< Col style = { { marginTop : "5px" } } span = { 2 } >
912
914
{ Setting . getLabel ( i18next . t ( "provider:Domain" ) , i18next . t ( "provider:Domain - Tooltip" ) ) } :
@@ -918,10 +920,24 @@ class ProviderEditPage extends React.Component {
918
920
</ Col >
919
921
</ Row >
920
922
) }
921
- { [ "AWS S3" , "Tencent Cloud COS" , "Qiniu Cloud Kodo "] . includes ( this . state . provider . type ) ? (
923
+ { [ "Casdoor " ] . includes ( this . state . provider . type ) ? (
922
924
< Row style = { { marginTop : "20px" } } >
923
925
< Col style = { { marginTop : "5px" } } span = { 2 } >
924
- { Setting . getLabel ( i18next . t ( "provider:Region ID" ) , i18next . t ( "provider:Region ID - Tooltip" ) ) } :
926
+ { Setting . getLabel ( i18next . t ( "general:Organization" ) , i18next . t ( "general:Organization - Tooltip" ) ) } :
927
+ </ Col >
928
+ < Col span = { 22 } >
929
+ < Input value = { this . state . provider . content } onChange = { e => {
930
+ this . updateProviderField ( "content" , e . target . value ) ;
931
+ } } />
932
+ </ Col >
933
+ </ Row >
934
+ ) : null }
935
+ { [ "AWS S3" , "Tencent Cloud COS" , "Qiniu Cloud Kodo" , "Casdoor" ] . includes ( this . state . provider . type ) ? (
936
+ < Row style = { { marginTop : "20px" } } >
937
+ < Col style = { { marginTop : "5px" } } span = { 2 } >
938
+ { [ "Casdoor" ] . includes ( this . state . provider . type ) ?
939
+ Setting . getLabel ( i18next . t ( "general:Application" ) , i18next . t ( "general:Application - Tooltip" ) ) :
940
+ Setting . getLabel ( i18next . t ( "provider:Region ID" ) , i18next . t ( "provider:Region ID - Tooltip" ) ) } :
925
941
</ Col >
926
942
< Col span = { 22 } >
927
943
< Input value = { this . state . provider . regionId } onChange = { e => {
@@ -1298,7 +1314,7 @@ class ProviderEditPage extends React.Component {
1298
1314
) : null
1299
1315
}
1300
1316
{
1301
- ( this . state . provider . type === "Alipay" || this . state . provider . type === "WeChat Pay" ) ? (
1317
+ ( this . state . provider . type === "Alipay" || this . state . provider . type === "WeChat Pay" || this . state . provider . type === "Casdoor" ) ? (
1302
1318
< Row style = { { marginTop : "20px" } } >
1303
1319
< Col style = { { marginTop : "5px" } } span = { ( Setting . isMobile ( ) ) ? 22 : 2 } >
1304
1320
{ Setting . getLabel ( i18next . t ( "general:Cert" ) , i18next . t ( "general:Cert - Tooltip" ) ) } :
0 commit comments