Skip to content

ui/SettingsModal

Classes

SettingsModal

Defined in: ui/SettingsModal.ts:18

Settings Modal Component Handles BlueSky server configuration and map style settings

Constructors

Constructor
new SettingsModal(): SettingsModal;

Defined in: ui/SettingsModal.ts:64

Returns

SettingsModal

Methods

open()
open(): void;

Defined in: ui/SettingsModal.ts:276

Open the settings modal. Settings are loaded by onBeforeOpen(), which the modal manager fires on every open.

Returns

void

close()
close(): void;

Defined in: ui/SettingsModal.ts:283

Close the settings modal

Returns

void

connectToConfiguredServer()
connectToConfiguredServer(): Promise<boolean>;

Defined in: ui/SettingsModal.ts:444

Connect to the currently-configured BlueSky host programmatically, without any modal interaction. Used by the integrated build to auto-connect after the server is started/restarted. Resolves true once the connection is confirmed.

Returns

Promise\<boolean>

disconnectFromConfiguredServer()
disconnectFromConfiguredServer(): Promise<void>;

Defined in: ui/SettingsModal.ts:483

Disconnect from the BlueSky server programmatically, without any modal interaction. Used by the integrated build to auto-disconnect after the server is stopped/killed.

Returns

Promise\<void>

enableIntegratedMode()
enableIntegratedMode(): void;

Defined in: ui/SettingsModal.ts:558

Switch the connectivity section into integrated mode (integrated build only).

In the integrated build BlueSky runs inside the same container as the WebATM backend, so the connection host is always "wherever the backend lives" and connecting/disconnecting follows the server lifecycle automatically. Lock the host to the backend-reported value and hide the manual Connect/Disconnect buttons, and keep it that way regardless of connection state. Never called in the default build, so it stays a no-op there.

Returns

void

Variables

settingsModal

const settingsModal: SettingsModal;

Defined in: ui/SettingsModal.ts:690