Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Desktop Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SeeBeyond
Desktop Client
Commits
e8018892
Commit
e8018892
authored
Sep 08, 2020
by
Amy Yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dialog box for confirmation for closing app when chart is downloading
parent
62b87280
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/App.vue
src/App.vue
+17
-0
No files found.
src/App.vue
View file @
e8018892
...
@@ -115,6 +115,23 @@
...
@@ -115,6 +115,23 @@
}
}
});
});
window
.
onbeforeunload
=
(
e
)
=>
{
if
(
this
.
$data
.
downloadQueue
.
length
!=
0
)
{
e
.
returnValue
=
false
;
const
options
=
{
type
:
'
question
'
,
buttons
:
[
'
No
'
,
'
Yes
'
],
message
:
'
Do you really want to quit?
'
,
detail
:
'
Quitting while a chart is downloading may cause errors.
'
,
};
dialog
.
showMessageBox
(
null
,
options
,
(
response
)
=>
{
if
(
response
==
1
)
{
remote
.
getCurrentWindow
().
destroy
();
}
});
}
};
ipcRenderer
.
on
(
"
download-complete
"
,
(
event
,
downloadItem
)
=>
{
ipcRenderer
.
on
(
"
download-complete
"
,
(
event
,
downloadItem
)
=>
{
let
srxdControl
=
new
SRXD
();
let
srxdControl
=
new
SRXD
();
let
userSettings
=
new
UserSettings
();
let
userSettings
=
new
UserSettings
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment