I am currently using Dialog component and passing null when action fails like saving or editing. Then I display notification that edit or saving failed.
Now, if user presses X in the dialog then it does the same thing returns null and cause that notification to appear. Is there any way to differentiate between both closing methods ?