@@ -822,7 +822,7 @@ class ProviderEditPage extends React.Component {
822
822
</ Col >
823
823
</ Row >
824
824
{
825
- ( this . state . provider . type === "WeChat Pay" || this . state . provider . type === "CUCloud" ) || ( this . state . provider . category === "Email" && ( this . state . provider . type === "Azure ACS" || this . state . provider . type === "SendGrid" ) ) ? null : (
825
+ ( this . state . provider . type === "WeChat Pay" || this . state . provider . type === "CUCloud" ) || ( this . state . provider . category === "Email" && ( this . state . provider . type === "Azure ACS" ) ) ? null : (
826
826
< Row style = { { marginTop : "20px" } } >
827
827
< Col style = { { marginTop : "5px" } } span = { ( Setting . isMobile ( ) ) ? 22 : 2 } >
828
828
{ this . getClientSecret2Label ( this . state . provider ) } :
@@ -908,7 +908,7 @@ class ProviderEditPage extends React.Component {
908
908
</ Row >
909
909
)
910
910
}
911
- { this . state . provider . category === "Storage" || [ "Custom HTTP SMS" , "Custom HTTP Email" , "CUCloud" ] . includes ( this . state . provider . type ) ? (
911
+ { this . state . provider . category === "Storage" || [ "Custom HTTP SMS" , "Custom HTTP Email" , "SendGrid" , " CUCloud"] . includes ( this . state . provider . type ) ? (
912
912
< div >
913
913
{ [ "Local File System" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
914
914
< Row style = { { marginTop : "20px" } } >
@@ -922,7 +922,7 @@ class ProviderEditPage extends React.Component {
922
922
</ Col >
923
923
</ Row >
924
924
) }
925
- { [ "Custom HTTP SMS" , "Local File System" , "MinIO" , "Tencent Cloud COS" , "Google Cloud Storage" , "Qiniu Cloud Kodo" , "Synology" , "Casdoor" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
925
+ { [ "Custom HTTP SMS" , "SendGrid" , " Local File System", "MinIO" , "Tencent Cloud COS" , "Google Cloud Storage" , "Qiniu Cloud Kodo" , "Synology" , "Casdoor" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
926
926
< Row style = { { marginTop : "20px" } } >
927
927
< Col style = { { marginTop : "5px" } } span = { 2 } >
928
928
{ Setting . getLabel ( i18next . t ( "provider:Endpoint (Intranet)" ) , i18next . t ( "provider:Region endpoint for Intranet" ) ) } :
@@ -934,7 +934,7 @@ class ProviderEditPage extends React.Component {
934
934
</ Col >
935
935
</ Row >
936
936
) }
937
- { [ "Custom HTTP SMS" , "Local File System" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
937
+ { [ "Custom HTTP SMS" , "SendGrid" , " Local File System", "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
938
938
< Row style = { { marginTop : "20px" } } >
939
939
< Col style = { { marginTop : "5px" } } span = { 2 } >
940
940
{ [ "Casdoor" ] . includes ( this . state . provider . type ) ?
@@ -948,7 +948,7 @@ class ProviderEditPage extends React.Component {
948
948
</ Col >
949
949
</ Row >
950
950
) }
951
- { [ "Custom HTTP SMS" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
951
+ { [ "Custom HTTP SMS" , "SendGrid" , " CUCloud"] . includes ( this . state . provider . type ) ? null : (
952
952
< Row style = { { marginTop : "20px" } } >
953
953
< Col style = { { marginTop : "5px" } } span = { 2 } >
954
954
{ Setting . getLabel ( i18next . t ( "provider:Path prefix" ) , i18next . t ( "provider:Path prefix - Tooltip" ) ) } :
@@ -960,7 +960,7 @@ class ProviderEditPage extends React.Component {
960
960
</ Col >
961
961
</ Row >
962
962
) }
963
- { [ "Custom HTTP SMS" , "Synology" , "Casdoor" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
963
+ { [ "Custom HTTP SMS" , "SendGrid" , " Synology", "Casdoor" , "CUCloud" ] . includes ( this . state . provider . type ) ? null : (
964
964
< Row style = { { marginTop : "20px" } } >
965
965
< Col style = { { marginTop : "5px" } } span = { 2 } >
966
966
{ Setting . getLabel ( i18next . t ( "provider:Domain" ) , i18next . t ( "provider:Domain - Tooltip" ) ) } :
@@ -1067,18 +1067,16 @@ class ProviderEditPage extends React.Component {
1067
1067
</ React . Fragment >
1068
1068
) : this . state . provider . category === "Email" ? (
1069
1069
< React . Fragment >
1070
- { [ "SendGrid" ] . includes ( this . state . provider . type ) ? null : (
1071
- < Row style = { { marginTop : "20px" } } >
1072
- < Col style = { { marginTop : "5px" } } span = { ( Setting . isMobile ( ) ) ? 22 : 2 } >
1073
- { Setting . getLabel ( i18next . t ( "provider:Host" ) , i18next . t ( "provider:Host - Tooltip" ) ) } :
1074
- </ Col >
1075
- < Col span = { 22 } >
1076
- < Input prefix = { < LinkOutlined /> } value = { this . state . provider . host } onChange = { e => {
1077
- this . updateProviderField ( "host" , e . target . value ) ;
1078
- } } />
1079
- </ Col >
1080
- </ Row >
1081
- ) }
1070
+ < Row style = { { marginTop : "20px" } } >
1071
+ < Col style = { { marginTop : "5px" } } span = { ( Setting . isMobile ( ) ) ? 22 : 2 } >
1072
+ { Setting . getLabel ( i18next . t ( "provider:Host" ) , i18next . t ( "provider:Host - Tooltip" ) ) } :
1073
+ </ Col >
1074
+ < Col span = { 22 } >
1075
+ < Input prefix = { < LinkOutlined /> } value = { this . state . provider . host } onChange = { e => {
1076
+ this . updateProviderField ( "host" , e . target . value ) ;
1077
+ } } />
1078
+ </ Col >
1079
+ </ Row >
1082
1080
{ [ "Azure ACS" , "SendGrid" ] . includes ( this . state . provider . type ) ? null : (
1083
1081
< Row style = { { marginTop : "20px" } } >
1084
1082
< Col style = { { marginTop : "5px" } } span = { ( Setting . isMobile ( ) ) ? 22 : 2 } >
0 commit comments