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
SpinShare
Desktop Client
Commits
807ae1f8
Commit
807ae1f8
authored
Jun 23, 2020
by
SpinShare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add timeout to refresh to fix animation not rendering
parent
4ae906c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/views/Library.vue
src/views/Library.vue
+6
-2
No files found.
src/views/Library.vue
View file @
807ae1f8
...
...
@@ -74,7 +74,10 @@
DeleteOverlay
},
mounted
:
function
()
{
this
.
refreshLibrary
();
// Put initial refresh on a timeout so the loading animation is rendered first
setTimeout
(()
=>
{
this
.
refreshLibrary
();
},
50
);
this
.
$on
(
'
delete
'
,
(
file
)
=>
{
this
.
$data
.
showDeleteOverlay
=
true
;
...
...
@@ -95,12 +98,13 @@
this
.
$on
(
'
install
'
,
()
=>
{
this
.
install
();
});
// Refresh if the Download Queue finished an item
ipcRenderer
.
on
(
"
download-complete
"
,
(
event
,
downloadItem
)
=>
{
this
.
refreshLibrary
();
});
},
methods
:
{
// TODO: Make this truly async
refreshLibrary
:
async
function
()
{
let
ssapi
=
new
SSAPI
(
process
.
env
.
NODE_ENV
===
'
development
'
);
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