async function openDialog()

in src/app/app.ts [50:74]


async function openDialog(actionContext: IActionContext) {
    const hostDialogService = await VSS.getService<IHostDialogService>(VSS.ServiceIds.Dialog);
    const dialog = await hostDialogService.openDialog(
        `${extensionContext.publisherId}.${extensionContext.extensionId}.app-dialog`,
        {
            title: `Translate to OData`,
            width: 500,
            height: 600,
            modal: true,
            draggable: true,
            resizable: true,
            buttons: {
                ok: {
                    id: 'ok',
                    text: 'Dismiss',
                    click: () => {
                        dialog.close();
                    },
                    class: 'cta',
                },
            },
        },
        actionContext
    );
}