Page MenuHomePhabricator

OO.ui.alert() and OO.ui.confirm() should "queue" the dialogs, rather than failing if a dialog is already open
Open, MediumPublic

Description

OO.ui.alert() and OO.ui.confirm() should "queue" the dialogs, rather than failing if a dialog is already open (they will return a rejected promise and do nothing).

OO.ui.alert( 'Foo.' );
OO.ui.confirm( 'Foo?' );


OO.ui.confirm( 'Foo?' );
OO.ui.alert( 'Foo.' );

Current behavior: the first dialog opens, the second dialog never opens.

Expected behavior: the first dialog opens, the second dialog opens after the user closes the first dialog.

Event Timeline

matmarex raised the priority of this task from to Medium.
matmarex updated the task description. (Show Details)
matmarex added a project: OOUI.
matmarex subscribed.