mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
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:
parent
388fc2f7d9
commit
136ca282eb
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user