From 136ca282eb3ebd4251da28780ff56ee2f660272e Mon Sep 17 00:00:00 2001 From: Robert Vojta Date: Mon, 25 Feb 2019 14:16:18 +0100 Subject: [PATCH] fix(gui): Fix disappearing modal window Changelog-entry: Fix disappearing modal window Change-type: patch Signed-off-by: Robert Vojta --- lib/gui/app/components/modal/services/modal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gui/app/components/modal/services/modal.js b/lib/gui/app/components/modal/services/modal.js index 52abea1d..192f2556 100644 --- a/lib/gui/app/components/modal/services/modal.js +++ b/lib/gui/app/components/modal/services/modal.js @@ -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,