mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-26 20:56:34 +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,
|
template: options.template,
|
||||||
controller: options.controller,
|
controller: options.controller,
|
||||||
size: options.size,
|
size: options.size,
|
||||||
resolve: options.resolve
|
resolve: options.resolve,
|
||||||
|
backdrop: 'static'
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -73,7 +74,7 @@ module.exports = function ($uibModal, $q) {
|
|||||||
resolve(value)
|
resolve(value)
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
// Bootstrap doesn't 'resolve' these but cancels the dialog
|
// 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', {
|
analytics.logEvent('Modal rejected', {
|
||||||
name: options.name,
|
name: options.name,
|
||||||
method: error,
|
method: error,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user