[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:
Victor Woeltjen 2014-11-24 07:54:26 -08:00
parent 2ab3f5f5f9
commit eff9747198

View File

@ -42,8 +42,10 @@ define(
$log.warn([
"Dialog already showing; ",
"unable to show ",
title
formModel.name
].join(""));
deferred.reject();
return;
}
scope.dialog.visible = true;