Skip to content

Commit

Permalink
Close all dialogs when activating a deep link
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek committed Dec 18, 2024
1 parent cf21f6e commit a9421c6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ export class DeepLinksService {
return;
}

// Before we start, let's close any open dialogs, for a few reasons:
// 1. Activating a deep link may require changing the workspace, and we don't
// want to see dialogs from the previous one.
// 2. A login dialog could be covered by an important dialog.
// 3. The user could be confused, since Connect My Computer or Authorize Web
// Session documents would be displayed below a dialog.
this.modalsService.cancelAndCloseAll();

// launchDeepLink cannot throw if it receives a pathname that doesn't match any supported
// pathnames. The user might simply be using a version of Connect that doesn't support the given
// pathname yet. Generally, such cases should be caught outside of DeepLinksService by
Expand Down

0 comments on commit a9421c6

Please sign in to comment.