[Common UI] Correct dialog failure behavior
When a dialog is already showing, act as if the user input was cancelled and show a warning. Part of ongoing transition of common user interface bundles for WTD-574.
This commit is contained in:
@@ -42,8 +42,10 @@ define(
|
|||||||
$log.warn([
|
$log.warn([
|
||||||
"Dialog already showing; ",
|
"Dialog already showing; ",
|
||||||
"unable to show ",
|
"unable to show ",
|
||||||
title
|
formModel.name
|
||||||
].join(""));
|
].join(""));
|
||||||
|
deferred.reject();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
scope.dialog.visible = true;
|
scope.dialog.visible = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user