Solid Accord
    Preparing search index...

    Interface SolidSaveButton

    The Save button: the app sets its on… handlers, and tells it where things stand with show.

    interface SolidSaveButton {
        onConnect: ((webId: string) => Promise<unknown>) | null;
        onDisconnect: (() => Promise<unknown>) | null;
        onSave: (() => Promise<unknown>) | null;
        show(state: SaveButtonState): void;
        showUnsaved(): void;
    }
    Index
    onConnect: ((webId: string) => Promise<unknown>) | null

    What Next does, once a WebID is typed in the panel: connecting that Pod. How it goes is shown with show.

    onDisconnect: (() => Promise<unknown>) | null

    What Disconnect does. The button shows it's under way until the promise this returns settles.

    onSave: (() => Promise<unknown>) | null

    What Save does. Where it gets to is shown with show, so what it resolves to is ignored.

    • Shows where things stand, each time they change. A save that lands or fails pulses the right half, as one that's already saved as the page loads doesn't, and a Pod that fails to connect opens the WebID form, saying why.

      Parameters

      Returns void

    • Says the work has changed since it was saved.

      Returns void