mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-30 21:59:46 +02:00
chore: ran both frontend and backend linting
This commit is contained in:
parent
6ea6e752f6
commit
c7c5caf559
15 changed files with 177 additions and 94 deletions
|
|
@ -80,7 +80,8 @@ export const ConfluenceConfig: FC<ConfluenceConfigProps> = ({
|
|||
|
||||
// For OAuth connectors, show simple info message
|
||||
if (isOAuth) {
|
||||
const siteUrl = (connector.config?.base_url as string) || (connector.config?.site_url as string) || "Unknown";
|
||||
const siteUrl =
|
||||
(connector.config?.base_url as string) || (connector.config?.site_url as string) || "Unknown";
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* OAuth Info */}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ export const DiscordConfig: FC<DiscordConfigProps> = () => {
|
|||
<div className="text-xs sm:text-sm">
|
||||
<p className="font-medium text-xs sm:text-sm">Add Bot to Servers</p>
|
||||
<p className="text-muted-foreground mt-1 text-[10px] sm:text-sm">
|
||||
Before indexing, make sure the Discord bot has been added to the servers (guilds) you want to
|
||||
index. The bot can only access messages from servers it's been added to. Use the OAuth
|
||||
authorization flow to add the bot to your servers.
|
||||
Before indexing, make sure the Discord bot has been added to the servers (guilds) you
|
||||
want to index. The bot can only access messages from servers it's been added to. Use the
|
||||
OAuth authorization flow to add the bot to your servers.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -449,13 +449,13 @@ export function useConnectorEditPage(connectorId: number, searchSpaceId: string)
|
|||
case "JIRA_CONNECTOR": {
|
||||
// Check if this is an OAuth connector (has access_token or _token_encrypted flag)
|
||||
const isJiraOAuth = !!(originalConfig.access_token || originalConfig._token_encrypted);
|
||||
|
||||
|
||||
if (isJiraOAuth) {
|
||||
// OAuth connectors don't allow editing credentials through the form
|
||||
// Only allow name changes, which are handled separately
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// Legacy API token connector - allow editing credentials
|
||||
if (
|
||||
formData.JIRA_BASE_URL !== originalConfig.JIRA_BASE_URL ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue