Sfoglia il codice sorgente

Merge pull request #3785 from weseek/fix/gw6069-copy-access-tokens-to-clipboard

Fix/gw6069 copy access tokens to clipboard
Yuki Takei 4 anni fa
parent
commit
b0998dce27

+ 2 - 4
src/client/js/components/Admin/SlackIntegration/WithProxyAccordions.jsx

@@ -92,9 +92,8 @@ const GeneratingTokensAndRegisteringProxyServiceProcess = withUnstatedContainers
         <label className="text-left text-md-right col-md-3 col-form-label">Access Token Proxy to GROWI</label>
         <div className="col-md-6">
           <div className="input-group-prepend mx-1">
-            {/* TODO: show tokenPtoG GW-5899 */}
             <input className="form-control" type="text" value={props.tokenPtoG || ''} readOnly />
-            <CopyToClipboard text="tokenPtoG" onCopy={() => toastSuccess(t('admin:slack_integration.copied_to_clipboard'))}>
+            <CopyToClipboard text={props.tokenPtoG || ''} onCopy={() => toastSuccess(t('admin:slack_integration.copied_to_clipboard'))}>
               <div className="btn input-group-text">
                 <i className="fa fa-clipboard mx-1" aria-hidden="true"></i>
               </div>
@@ -106,9 +105,8 @@ const GeneratingTokensAndRegisteringProxyServiceProcess = withUnstatedContainers
         <label className="text-left text-md-right col-md-3 col-form-label">Access Token GROWI to Proxy</label>
         <div className="col-md-6">
           <div className="input-group-prepend mx-1">
-            {/* TODO: show tokenGtoP GW-5899 */}
             <input className="form-control" type="text" value={props.tokenGtoP || ''} readOnly />
-            <CopyToClipboard text="tokenGtoP" onCopy={() => toastSuccess(t('admin:slack_integration.copied_to_clipboard'))}>
+            <CopyToClipboard text={props.tokenGtoP || ''} onCopy={() => toastSuccess(t('admin:slack_integration.copied_to_clipboard'))}>
               <div className="btn input-group-text">
                 <i className="fa fa-clipboard mx-1" aria-hidden="true"></i>
               </div>