mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-07 05:00:22 +02:00
temporarily disable check for testing
This commit is contained in:
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user