Launcher window: say "Not signed in on this PC" under Launch, with Sign in
The dev drive on another PC still had no live aircraft after that PC's launcher went live: its API log kept saying "the DHP answered, but this PC has no DHP sign-in yet", and launcher.json was never rewritten, i.e. no sign-in ever completed there. Root cause is the window, not the operator: the action panel offers Sign in only when nothing is installed, an update is due, or no operator is remembered (actionFor). The operator is remembered IN launcher.json, which travels with the drive, while the sign-in lives in that PC's Credential Manager - so a drive on a new PC shows Launch as if nothing were missing, and Sign in sits in Settings > Account where nothing points to it. Under Launch, while online and not signed in, the panel now says ODIAN will run on this PC's own data without live aircraft, with a Sign in link. Launch stays the button: a sign-in that cannot complete must not stop ODIAN. New mock scenario `new-pc` (online, installed, operator remembered, no sign-in). Spot-check: npm run dev -> ?scenario=new-pc shows the line; its Sign in link runs the sign-in and the line goes, the status bar then reading "Signed in as". svelte-check: 0 errors.
This commit is contained in:
@@ -223,6 +223,20 @@
|
||||
Offline: ODIAN <strong>{s?.installed}</strong> runs on local data and map tiles.
|
||||
{/if}
|
||||
</p>
|
||||
{#if s?.online && !s.signed_in && !checking}
|
||||
<!-- The operator is remembered with the install (launcher.json travels with a drive),
|
||||
the DHP sign-in is not (Credential Manager, per PC). So a drive on another PC offers
|
||||
Launch as if nothing were missing, and ODIAN then runs on that PC's own data: no live
|
||||
aircraft, no tiles from the site. Launch stays the button - a sign-in that cannot
|
||||
complete must not stop ODIAN - but the gap is said here, with the way out. -->
|
||||
<p class="secondary attention">
|
||||
<Icon name="alert" size={14} />
|
||||
<span>
|
||||
Not signed in on this PC: ODIAN will run on this PC's own data, without live aircraft.
|
||||
<button class="btn-link" disabled={blocked} onclick={() => launcher.signIn()}>Sign in</button>
|
||||
</span>
|
||||
</p>
|
||||
{/if}
|
||||
{#if launcher.syncAttention > 0}
|
||||
<p class="secondary attention">
|
||||
<Icon name="alert" size={14} />
|
||||
|
||||
Reference in New Issue
Block a user