Interface SiteServiceInterface

Service that provides access to the currently active site

interface SiteServiceInterface {
    activeSite: SiteInterface;
    activeSiteSelected: Signal<ActiveSiteSelectedHandler>;
    loadSite(site: SiteInterface): Promise<void>;
}

Properties

activeSite: SiteInterface

The active site. Can be undefined in case no site is active.

activeSiteSelected: Signal<ActiveSiteSelectedHandler>

Signal that is emitted when a site is selected. Also fires (with undefined) when a site is left.

Methods

  • Change the active site to the provided one. If undefined, the active site is unloaded and the site selection screen is shown.

    Parameters

    Returns Promise<void>