[electron][dialog] As a Theia consumer, I want to see native dialogs only when running in electron env #8239
Labels
dialogs
issues related to dialogs
enhancement
issues that are enhancements to current functionality - nice to haves
ui/ux
issues related to user interface / user experience
Currently, we inject and open Theia dialogs all over the application ignoring the fact that the app might be running in electron env. As a Theia consumer, I want to see native dialogs only when my app is based on electron. Mixing and using native dialogs with the browsers ones is alien. Since we have to remove the
remote
namespace from the browser code, it would be great to have one generalized dialog service API in Theia that does all the magic for both the electron and browser.We already have a common API for file-based dialogs:
theia/packages/filesystem/src/browser/file-dialog/file-dialog-service.ts
Lines 25 to 34 in fd23988
electron's
dialog
API seems to be a good starting point to create a standard dialog API for Theia.Feature Description:
The text was updated successfully, but these errors were encountered: