Skip to content

Opening multiple dialog at once #6761

Closed

Description

@VagrantAI-c

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

I have urls that are connected to different pages, that are opened in dialog. For example, i have link /content/43/gallery which should open two dialog at once on app init, one for /content/43 and one for /gallery. It would be great if such MdDialogConfig could be added to prevent dialog from not opening, if another dialog is still initiating

What is the current behavior?

Currently, due to #5769 its impossible to perform such behavior, without implementing queue mechanism as a workaround and blocking all dialogs from closing until last dialog is opened

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

I have overlay widget app, that implements multilevel dialog system, and such behavior is damaging the app logic

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

2.0.0-beta.10

Is there anything else we should know?

Activity

  1. crisbeto commented on Aug 31, 2017

    @crisbeto
    Member

    I'm not sure how it would work through the MdDialogConfig since one dialog could specify that it should prevent other dialogs, whereas another one wouldn't. Thoughts @jelbourn?

  2. jelbourn commented on Sep 7, 2017

    @jelbourn
    Contributor

    What if we added a method to dialog like openWhenReady? I agree that the current behavior feels not-quite-right

  3. crisbeto commented on Sep 7, 2017

    @crisbeto
    Member

    That feels a little clunky. I'll see if I can figure out a way to queue up the dialog animations.

  4. crisbeto commented on Dec 23, 2017

    @crisbeto
    Member

    Closing since we don't have the limitation of opening one dialog at a time anymore.

  5. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 8, 2019
  7. added
    needs: discussion
    on Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions