-
Notifications
You must be signed in to change notification settings - Fork 167
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
Issue with showing dialog from context menu #118
Comments
What should this contribution exactly do? What example are you following? |
@karelkral first of all thanks for responding. Yes im trying to extend a TFS work item menu: The idea is to add a dropdown to the dialog and perform some action (change some properties regarding the selected work item) based on the selected value of the dropdown. Nothing that special or extensive, should be just one dropdown and an "OK" and "Cancel". The inspiration I'm getting from this repo and the new documentation page |
Showing a dialog from the local menu is some kind complicated and not easy to understand. From my observations this is how it works:
|
Using a dialog service to show custom dialog content is covered here:
https://github.com/microsoft/azure-devops-extension-sample/blob/master/src/Samples/Hub/Hub.tsx As in the panel example, the dialog content must be registered as a separate extension. |
@karelkral this is very valuable information. Unfortunatly my focus shifted at the moment and currently not doing any development for our azure boards process. So I can't look at your information until I think november-decemberish (might be sooner if i put in some extra effort). Can I get in touch with you regarding this in the near future? |
@karelkral after some long delay (hench last post where I said I would be working on it november-decemberish), ive succesfully added the popup! thnx for your information. Any chance you can give me some information about conditionally adding a context menu item based on work item type? |
Would you be able to share your working code for creating a popup from the context menu? |
Hello
I've ran into an issue while displaying an dialog from the context menu and im kinda in the blue of whats wrong. I've started out from one of the examples from this repository.
Given following contribution:
JSON:
JS:
When adding the extension to our Devops environment all the logs seems to execute perfectly, so the code is working. But the dialog doesn't show at all. Am I missing something? when browsing through the examples you have a contribution type: "ms-vss-work-web.action-provider", am I missing that implementation?
Hopefully someone can help me out here :D.
Note: I exclude the HTML file because it does nothing more then pointing to the js file and having the root component
The text was updated successfully, but these errors were encountered: