-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHE-9525 add modal notifications #1844
Conversation
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Why do they need to be modal? |
@olexii4 I do not like these old fashioned dialogs that appear in the middle of the screen at all. I think it will be better if we do not introduce those. /cc @slemeur @svenefftinge modality has its uses, for instance che workspace containers are shutdown on long periods of inactivity and when that happens we display a modal dialog with |
FYI modal message windows are available to vscode message API thus ppl that want to convert plugins from vscode to theia will miss that feature if there is no modal option. |
@benoitf that's the point, they support it in the |
Besides putting it into a dedicated service, I'm curious how this implementation would behave. Let's say there are multiple request to open a modal dialog, would that result in having a visible stack of dialogs? or would they appear one after the other? |
I looked for usages of |
@AlexTugarev so you would like to have DialogService which bring dialogs/modals ? and window.showMessage delegating to either MessageService or DialogService ? |
Do you aim to introduce the On the |
We have dialogs already : https://github.com/theia-ide/theia/blob/master/packages/core/src/browser/dialogs.ts It is not a service but an abstract class, which might be a bit more inconvenient but provides more control, which IMHO is a good thing in this case. |
so, to sum up:
? |
Hello |
@benoitf, that would correspond with vscode, right? |
@AlexTugarev yes |
Add modal notifications.
It needs to realize for API for #1482
This modal notification message optionally provide an array of items which will be presented as clickable buttons and can be shown using the warn,
info and error functions in MessageService.
Simple example that show a modal information message:
Simple example that show a modal information message with buttons:
Both kind of notifications with buttons:
Signed-off-by: Oleksii Orel oorel@redhat.com