Skip to content

Commit 492168a

Browse files
authored
ui fix more (#2370)
1 parent 02215ec commit 492168a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ui/src/routes/_authenticated/_dashboard/dashboard/settings.tokens.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function RouteComponent() {
142142
</Dialog>
143143
</div>
144144
{newToken && (
145-
<div className="space-y-2">
145+
<div className="space-y-2 bg-blue-50 p-4 rounded-lg border border-blue-200">
146146
<p className="text-sm font-medium">New Token (copy this now, it won't be shown again):</p>
147147
<div className="flex space-x-2">
148148
<Input value={newToken} readOnly />

ui/src/routes/logout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { signOut } from '../authkit/serverFunctions';
33

44
export const Route = createFileRoute('/logout')({
55
preload: false,
6-
loader: async () => {
7-
await signOut({ data: "/" });
6+
loader: async ({context}) => {
7+
const redirectUrl = context.publicServerConfig.PUBLIC_URL
8+
await signOut({ data: redirectUrl });
89
},
910
});

ui/src/routes/tfe/$.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ async function handler({ request }) {
1919
// important: we need to set these to allow the statesman backend to return the correct URL to opentofu or terraform clients
2020
const outgoingHeaders = new Headers(request.headers);
2121
const originalHost = outgoingHeaders.get('host') ?? '';
22-
console.log('originalHost', originalHost);
2322
if (originalHost) outgoingHeaders.set('x-forwarded-host', originalHost);
2423
outgoingHeaders.set('x-forwarded-proto', url.protocol.replace(':', ''));
2524
if (url.port) outgoingHeaders.set('x-forwarded-port', url.port);

0 commit comments

Comments
 (0)