fix(ui): add Overview connect button (#385, thanks @wizaj)

This commit is contained in:
Peter Steinberger
2026-01-08 01:12:56 +00:00
parent a450390f7c
commit e9346e6cf0
3 changed files with 5 additions and 4 deletions

View File

@@ -258,8 +258,8 @@ export function renderApp(state: AppViewState) {
lastActiveSessionKey: next,
});
},
onConnect: () => state.connect(),
onRefresh: () => state.loadOverview(),
onReconnect: () => state.connect(),
})
: nothing}

View File

@@ -19,8 +19,8 @@ export type OverviewProps = {
onSettingsChange: (next: UiSettings) => void;
onPasswordChange: (next: string) => void;
onSessionKeyChange: (next: string) => void;
onConnect: () => void;
onRefresh: () => void;
onReconnect: () => void;
};
export function renderOverview(props: OverviewProps) {
@@ -84,9 +84,9 @@ export function renderOverview(props: OverviewProps) {
</label>
</div>
<div class="row" style="margin-top: 14px;">
<button class="btn" @click=${() => props.onConnect()}>Connect</button>
<button class="btn" @click=${() => props.onRefresh()}>Refresh</button>
<button class="btn" @click=${() => props.onReconnect()}>Reconnect</button>
<span class="muted">Reconnect to apply URL/password changes.</span>
<span class="muted">Click Connect to apply connection changes.</span>
</div>
</div>