fix sorting auth column if no auth closes #149

This commit is contained in:
Milo Schwartz
2025-02-03 22:47:47 -05:00
parent e475c1ea50
commit 7cf798851c
2 changed files with 34 additions and 31 deletions

View File

@@ -56,11 +56,14 @@ export default async function ResourcesPage(props: ResourcesPageProps) {
protocol: resource.protocol,
proxyPort: resource.proxyPort,
http: resource.http,
hasAuth:
resource.sso ||
resource.pincodeId !== null ||
resource.pincodeId !== null ||
resource.whitelist
authState: !resource.http
? "none"
: resource.sso ||
resource.pincodeId !== null ||
resource.pincodeId !== null ||
resource.whitelist
? "protected"
: "not_protected"
};
});