fix(gui): Fix disappearing modal window

Changelog-entry: Fix disappearing modal window
Change-type: patch
Signed-off-by: Robert Vojta <robert@balena.io>
This commit is contained in:
Robert Vojta 2019-02-25 14:16:18 +01:00 committed by Alexis Svinartchouk
parent 388fc2f7d9
commit 136ca282eb

View File

@ -56,7 +56,8 @@ module.exports = function ($uibModal, $q) {
template: options.template,
controller: options.controller,
size: options.size,
resolve: options.resolve
resolve: options.resolve,
backdrop: 'static'
})
return {
@ -73,7 +74,7 @@ module.exports = function ($uibModal, $q) {
resolve(value)
}).catch((error) => {
// Bootstrap doesn't 'resolve' these but cancels the dialog
if (error === 'escape key press' || error === 'backdrop click') {
if (error === 'escape key press') {
analytics.logEvent('Modal rejected', {
name: options.name,
method: error,