Skip to main content

widgets_catalog_install

Function widgets_catalog_install 

Source
pub(crate) async fn widgets_catalog_install(
    st: &AppState,
    req: WidgetIdReq,
) -> Result<WidgetInstallResult, String>
Expand description

widgets.catalog.install: download a catalog widget, check it against the (freshly fetched and checked) index, and copy it in. Like any install, it doesn’t run until the user approves it.