fix: scrollbar appearing on digest auth input fields and other improvements (#4492)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Anwarul Islam
2024-10-29 21:05:13 +06:00
committed by GitHub
parent 108315d1b4
commit 1236e6b719
4 changed files with 9 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ import { Service } from "dioc"
import { computed, markRaw, Ref } from "vue"
import { getI18n } from "~/modules/i18n"
import { platform } from "~/platform"
import { AgentInterceptorService } from "~/platform/std/interceptors/agent"
import { InterceptorService } from "~/services/interceptor.service"
import { RESTTabService } from "~/services/tab/rest"
@@ -74,9 +75,12 @@ export class AuthorizationInspectorService
const results: InspectorResult[] = []
// `Agent` interceptor is recommended while using Digest Auth
// TODO: Better check to detect the platform
// Interceptor check only applies to the browser platform
const isUnsupportedInterceptor =
platform.interceptors.default === "browser" &&
this.interceptorService.currentInterceptorID.value !==
this.agentService.interceptorID
this.agentService.interceptorID
const resolvedAuthType = this.resolveAuthType(auth)