ソースを参照

remove isFixedFileUploadByEnvVar

itizawa 5 年 前
コミット
483f307c73

+ 1 - 3
src/client/js/components/Admin/App/FileUploadSetting.jsx

@@ -57,9 +57,7 @@ function FileUploadSetting(props) {
                     name="file-upload-type"
                     name="file-upload-type"
                     id={`file-upload-type-radio-${type}`}
                     id={`file-upload-type-radio-${type}`}
                     checked={adminAppContainer.state.fileUploadType === type}
                     checked={adminAppContainer.state.fileUploadType === type}
-                    onChange={(e) => {
-                    adminAppContainer.changeFileUploadType(type);
-                  }}
+                    onChange={() => { adminAppContainer.changeFileUploadType(type) }}
                   />
                   />
                   <label className="custom-control-label" htmlFor={`file-upload-type-radio-${type}`}>{t(`admin:app_setting.${type}_label`)}</label>
                   <label className="custom-control-label" htmlFor={`file-upload-type-radio-${type}`}>{t(`admin:app_setting.${type}_label`)}</label>
                 </div>
                 </div>

+ 0 - 15
src/client/js/services/AdminAppContainer.js

@@ -37,7 +37,6 @@ export default class AdminAppContainer extends Container {
 
 
       fileUploadType: '',
       fileUploadType: '',
       envFileUploadType: '',
       envFileUploadType: '',
-      isFixedFileUploadByEnvVar: false,
 
 
       gcsApiKeyJsonPath: '',
       gcsApiKeyJsonPath: '',
       envGcsApiKeyJsonPath: '',
       envGcsApiKeyJsonPath: '',
@@ -106,20 +105,6 @@ export default class AdminAppContainer extends Container {
       isEnabledPlugins: appSettingsParams.isEnabledPlugins,
       isEnabledPlugins: appSettingsParams.isEnabledPlugins,
     });
     });
 
 
-    // check is file upload type forced
-    if (this.isFixedFileUploadByEnvVar(appSettingsParams.envFileUploadType)) {
-      this.setState({ fileUploadType: appSettingsParams.envFileUploadType });
-      this.setState({ isFixedFileUploadByEnvVar: true });
-    }
-
-  }
-
-  /**
-   * get isFixedFileUploadByEnvVar
-   * @return {bool} isFixedFileUploadByEnvVar
-   */
-  isFixedFileUploadByEnvVar(envFileUploadType) {
-    return envFileUploadType != null;
   }
   }
 
 
   /**
   /**