title: How to prevent dialog to open twice
body: <p>I had button in my app, on doubleClick of my button I open a dialog. Sometimes when I doubleClick the button in a fast way then the dialog opens twice, as a result of which the user has to cancel the dialog twice.</p>
  <p>So can anyone suggest me how can I prevent this dialog to open twice on doubleClick of my button?</p>