diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js index 335cfdf0..35ec3981 100644 --- a/web/src/ProviderEditPage.js +++ b/web/src/ProviderEditPage.js @@ -527,7 +527,7 @@ class ProviderEditPage extends React.Component { ) } { - (this.state.provider.category === "Captcha" && this.state.provider.type === "Default") || this.state.provider.category === "Web3" ? null : ( + (this.state.provider.category === "Captcha" && this.state.provider.type === "Default") || (this.state.provider.category === "Web3") || (this.state.provider.category === "Storage" && this.state.provider.type === "Local File System") ? null : ( { this.state.provider.category === "AI" ? null : ( @@ -616,36 +616,42 @@ class ProviderEditPage extends React.Component { } {this.state.provider.category === "Storage" ? (
- - - {Setting.getLabel(i18next.t("provider:Endpoint"), i18next.t("provider:Region endpoint for Internet"))} : - - - { - this.updateProviderField("endpoint", e.target.value); - }} /> - - - - - {Setting.getLabel(i18next.t("provider:Endpoint (Intranet)"), i18next.t("provider:Region endpoint for Intranet"))} : - - - { - this.updateProviderField("intranetEndpoint", e.target.value); - }} /> - - - - - {Setting.getLabel(i18next.t("provider:Bucket"), i18next.t("provider:Bucket - Tooltip"))} : - - - { - this.updateProviderField("bucket", e.target.value); - }} /> - - + {["Local File System"].includes(this.state.provider.type) ? null : ( + + + {Setting.getLabel(i18next.t("provider:Endpoint"), i18next.t("provider:Region endpoint for Internet"))} : + + + { + this.updateProviderField("endpoint", e.target.value); + }} /> + + + )} + {["Local File System"].includes(this.state.provider.type) ? null : ( + + + {Setting.getLabel(i18next.t("provider:Endpoint (Intranet)"), i18next.t("provider:Region endpoint for Intranet"))} : + + + { + this.updateProviderField("intranetEndpoint", e.target.value); + }} /> + + + )} + {["Local File System"].includes(this.state.provider.type) ? null : ( + + + {Setting.getLabel(i18next.t("provider:Bucket"), i18next.t("provider:Bucket - Tooltip"))} : + + + { + this.updateProviderField("bucket", e.target.value); + }} /> + + + )} {Setting.getLabel(i18next.t("provider:Path prefix"), i18next.t("provider:Path prefix - Tooltip"))} : @@ -661,7 +667,7 @@ class ProviderEditPage extends React.Component { {Setting.getLabel(i18next.t("provider:Domain"), i18next.t("provider:Domain - Tooltip"))} : - { + { this.updateProviderField("domain", e.target.value); }} />