temporarily disable check for testing

This commit is contained in:
Richard Kuo
2024-12-07 22:26:13 -08:00
parent d8c5b4ea41
commit 4b5a022a5f

View File

@ -125,7 +125,7 @@ export default function AddConnector({
setCurrentPageUrl(window.location.href); setCurrentPageUrl(window.location.href);
} }
if (EE_ENABLED && NEXT_PUBLIC_CLOUD_ENABLED) { if (EE_ENABLED) {
const sourceMetadata = getSourceMetadata(connector); const sourceMetadata = getSourceMetadata(connector);
if (sourceMetadata?.oauthSupported == true) { if (sourceMetadata?.oauthSupported == true) {
setIsAuthorizeVisible(true); setIsAuthorizeVisible(true);
@ -449,21 +449,20 @@ export default function AddConnector({
Create New Create New
</button> </button>
{/* Button to sign in via OAuth */} {/* Button to sign in via OAuth */}
{oauthSupportedSources.includes(connector) && {oauthSupportedSources.includes(connector) && (
NEXT_PUBLIC_CLOUD_ENABLED && ( <button
<button onClick={handleAuthorize}
onClick={handleAuthorize} className="mt-6 text-sm bg-blue-500 px-2 py-1.5 flex text-text-200 flex-none rounded"
className="mt-6 text-sm bg-blue-500 px-2 py-1.5 flex text-text-200 flex-none rounded" disabled={isAuthorizing}
disabled={isAuthorizing} hidden={!isAuthorizeVisible}
hidden={!isAuthorizeVisible} >
> {isAuthorizing
{isAuthorizing ? "Authorizing..."
? "Authorizing..." : `Authorize with ${getSourceDisplayName(
: `Authorize with ${getSourceDisplayName( connector
connector )}`}
)}`} </button>
</button> )}
)}
</div> </div>
)} )}