zahmis %!s(int64=4) %!d(string=hai) anos
pai
achega
e04dece133

+ 1 - 15
src/client/js/components/Admin/SlackIntegration/OfficialBotSettings.jsx

@@ -13,7 +13,7 @@ const logger = loggerFactory('growi:SlackBotSettings');
 
 const OfficialBotSettings = (props) => {
   const {
-    appContainer, slackAppIntegrations, /* proxyServerUri, */ onClickAddSlackWorkspaceBtn, connectionStatuses, onUpdateTokens, onSubmitForm,
+    appContainer, slackAppIntegrations, onClickAddSlackWorkspaceBtn, connectionStatuses, onUpdateTokens, onSubmitForm,
   } = props;
   const [siteName, setSiteName] = useState('');
   const [integrationIdToDelete, setIntegrationIdToDelete] = useState(null);
@@ -58,19 +58,6 @@ const OfficialBotSettings = (props) => {
             connectionStatuses={connectionStatuses}
           />
 
-          {/* <div className="form-group row my-4">
-            <label className="text-left text-md-right col-md-3 col-form-label mt-3">Proxy URL</label>
-            <div className="col-md-6 mt-3">
-              <input
-                className="form-control"
-                type="text"
-                name="settingForm[proxyUrl]"
-                defaultValue={proxyServerUri}
-                readOnly
-              />
-            </div>
-          </div> */}
-
           <h2 className="admin-setting-header">{t('admin:slack_integration.integration_procedure')}</h2>
         </>
       )}
@@ -136,7 +123,6 @@ OfficialBotSettings.propTypes = {
   appContainer: PropTypes.instanceOf(AppContainer).isRequired,
 
   slackAppIntegrations: PropTypes.array,
-  // proxyServerUri: PropTypes.string,
   onClickAddSlackWorkspaceBtn: PropTypes.func,
   onDeleteSlackAppIntegration: PropTypes.func,
   connectionStatuses: PropTypes.object.isRequired,

+ 0 - 23
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

@@ -92,17 +92,6 @@ const SlackIntegration = (props) => {
         currentBotType: botType,
       });
       setSelectedBotType(null);
-      // if (botType === 'officialBot') {
-      //   try {
-      //     await appContainer.apiv3.put('/slack-integration-settings/proxy-uri', {
-      //       proxyUri: officialBotProxyUri,
-      //     });
-      //     toastSuccess(t('toaster.update_successed', { target: t('Proxy URL') }));
-      //   }
-      //   catch (err) {
-      //     toastError(err);
-      //   }
-      // }
       fetchSlackIntegrationData();
     }
     catch (err) {
@@ -117,17 +106,6 @@ const SlackIntegration = (props) => {
     if (currentBotType == null) {
       return changeCurrentBotSettings(botType);
     }
-    // if (botType === 'officialBot') {
-    //   try {
-    //     await appContainer.apiv3.put('/slack-integration-settings/proxy-uri', {
-    //       proxyUri: officialBotProxyUri,
-    //     });
-    //     toastSuccess(t('toaster.update_successed', { target: t('Proxy URL') }));
-    //   }
-    //   catch (err) {
-    //     toastError(err);
-    //   }
-    // }
     setSelectedBotType(botType);
   };
 
@@ -147,7 +125,6 @@ const SlackIntegration = (props) => {
       settingsComponent = (
         <OfficialBotSettings
           slackAppIntegrations={slackAppIntegrations}
-          // proxyServerUri={officialBotProxyUri}
           onClickAddSlackWorkspaceBtn={createSlackIntegrationData}
           onDeleteSlackAppIntegration={fetchSlackIntegrationData}
           connectionStatuses={connectionStatuses}