selfstore-account
The short version of the destination panel, sized for a header or a menu: where is my data, when was it last written, and how do I change my mind.
<selfstore-account></selfstore-account>
Why it is short
The panel offers four gestures. That is right for a settings page and wrong for a menu: a header that opens onto export a copy / restore a copy / change backup / stop saving here asks the user to arbitrate between four irreversible-looking words before they know what any of them does.
So this element keeps exactly two - go to the settings, where the panel lives, or change backup - and hands the rest to the page your app already has.
“Change backup” stops at detaching
It does not run a connect journey of its own. An app that mounts
<selfstore-gate> or
<selfstore-storage> already has the first-run screen,
and a store with no destination is exactly what that screen is for.
One journey, reached the same way whether it is the first day or a change of mind.
Properties
| Property | Type | Notes |
|---|---|---|
account |
string | null |
Who holds it - for Drive, driveTarget.account() |
confirmAction |
(a: DestinationAction) => boolean | Promise<boolean> |
Veto before detaching |
open |
boolean |
Whether the card is unfolded |