mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 13:05:04 +00:00
refactor: gateway token only shown in overview if auth mode is not trusted-proxy
This commit is contained in:
committed by
Peter Steinberger
parent
eae1f28d0c
commit
51c4a0a9e9
@@ -144,22 +144,7 @@ export function renderOverview(props: OverviewProps) {
|
||||
</label>
|
||||
${
|
||||
isTrustedProxy
|
||||
? html`
|
||||
<div class="field" style="margin-top: 8px">
|
||||
<span>Gateway Token</span>
|
||||
<div
|
||||
style="
|
||||
padding: 8px 12px;
|
||||
background: var(--bg-subtle, #f5f5f5);
|
||||
border-radius: 4px;
|
||||
color: var(--text-secondary, #666);
|
||||
font-size: 0.95em;
|
||||
"
|
||||
>
|
||||
Trusted Proxy mode
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
? ""
|
||||
: html`
|
||||
<label class="field">
|
||||
<span>Gateway Token</span>
|
||||
@@ -200,7 +185,7 @@ export function renderOverview(props: OverviewProps) {
|
||||
<div class="row" style="margin-top: 14px;">
|
||||
<button class="btn" @click=${() => props.onConnect()}>Connect</button>
|
||||
<button class="btn" @click=${() => props.onRefresh()}>Refresh</button>
|
||||
<span class="muted">Click Connect to apply connection changes.</span>
|
||||
<span class="muted">${isTrustedProxy ? "Authenticated via trusted proxy." : "Click Connect to apply connection changes."}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user