Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
801
Issues
801
List
Boards
Labels
Service Desk
Milestones
Merge Requests
61
Merge Requests
61
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
1793f0a34db47672f3ed019658f1f7d261763a0f...0734f74be6069be852b2381870f42092307e1a65
Source
0734f74be6069be852b2381870f42092307e1a65
Select Git revision
...
Target
1793f0a34db47672f3ed019658f1f7d261763a0f
Select Git revision
Compare
Commits (2)
(fix): reset inProgress - #1500
· c2a38f2c
Mark Harding
authored
6 hours ago
c2a38f2c
progress bar premature finish fix
#1500
· 0734f74b
Ben Hayward
authored
32 minutes ago
0734f74b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
poster.component.ts
src/app/modules/comments/poster/poster.component.ts
+1
-0
upload.ts
src/app/services/api/upload.ts
+4
-1
No files found.
src/app/modules/comments/poster/poster.component.ts
View file @
0734f74b
...
...
@@ -78,6 +78,7 @@ export class CommentPosterComponent {
this
.
inProgress
=
true
;
if
(
!
this
.
content
&&
!
this
.
attachment
.
has
())
{
this
.
inProgress
=
false
;
return
;
}
...
...
This diff is collapsed.
Click to expand it.
src/app/services/api/upload.ts
View file @
0734f74b
...
...
@@ -46,10 +46,13 @@ export class Upload {
}
xhr
.
open
(
'
POST
'
,
this
.
base
+
endpoint
,
true
);
xhr
.
upload
.
addEventListener
(
'
progress
'
,
function
(
e
:
any
)
{
progress
(
e
.
loaded
/
e
.
total
*
100
);
if
(
e
.
lengthComputable
)
{
progress
((
e
.
loaded
/
(
e
.
total
)
*
95
));
}
});
xhr
.
onload
=
function
(
this
:
XMLHttpRequest
)
{
if
(
this
.
status
===
200
)
{
progress
(
100
);
resolve
(
JSON
.
parse
(
this
.
response
));
}
else
{
reject
(
this
.
response
);
...
...
This diff is collapsed.
Click to expand it.