Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

VSTS modal dialog close event #390

Closed
javeriaanwer opened this issue Apr 16, 2018 · 1 comment
Closed

VSTS modal dialog close event #390

javeriaanwer opened this issue Apr 16, 2018 · 1 comment

Comments

@javeriaanwer
Copy link

Hi,

I am using microsoft VSTS modal dialog and I want a confirmation message when modal dialog is closed from 'x' (closed button of modal dialog), I get close event which fired after event dialog is closed.

I want an event before closing the dialog. How can I do that?

here is the code:

VSS.getService(VSS.ServiceIds.Dialog).then(function(dialogService) 
{ 
       var contributionId = //id 
       var dialogOptions = { title: "ABC", close: onDialogCloseByCrossButtonClick }; 
       dialogService.openDialog(contributionId, dialogOptions).then(
               function (dialog) {
                    // do something
        });
}

like its appearing in TFS WorkItem window.

image

@kaylangan
Copy link
Contributor

@javeriaanwer This project is for the VSTS extension in VS Code. You can try asking this question on https://www.visualstudio.com/team-services/support/ .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants