mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 15:04:10 +00:00
[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:
parent
2ab3f5f5f9
commit
eff9747198
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user