Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
2d56bff8
Commit
2d56bff8
authored
6 years ago
by
Lukas Mauß
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in comment service
parent
150f13ea
4 merge requests
!171
SWTP Comment Project
,
!170
Fix linter in pipe
,
!169
WebSocket Connector
,
!168
Filter comment list
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/shared/comment/comment.component.ts
+0
-1
0 additions, 1 deletion
src/app/components/shared/comment/comment.component.ts
src/app/services/http/comment.service.ts
+1
-1
1 addition, 1 deletion
src/app/services/http/comment.service.ts
with
1 addition
and
2 deletions
src/app/components/shared/comment/comment.component.ts
+
0
−
1
View file @
2d56bff8
...
@@ -43,7 +43,6 @@ export class CommentComponent implements OnInit {
...
@@ -43,7 +43,6 @@ export class CommentComponent implements OnInit {
setCorrect
(
comment
:
Comment
):
void
{
setCorrect
(
comment
:
Comment
):
void
{
comment
.
correct
=
!
comment
.
correct
;
comment
.
correct
=
!
comment
.
correct
;
this
.
commentService
.
updateComment
(
comment
).
subscribe
();
this
.
commentService
.
updateComment
(
comment
).
subscribe
();
console
.
log
(
'
is
'
+
comment
.
correct
);
}
}
delete
(
comment
:
Comment
):
void
{
delete
(
comment
:
Comment
):
void
{
...
...
This diff is collapsed.
Click to expand it.
src/app/services/http/comment.service.ts
+
1
−
1
View file @
2d56bff8
...
@@ -60,7 +60,7 @@ export class CommentService extends BaseHttpService {
...
@@ -60,7 +60,7 @@ export class CommentService extends BaseHttpService {
}
}
updateComment
(
comment
:
Comment
):
Observable
<
any
>
{
updateComment
(
comment
:
Comment
):
Observable
<
any
>
{
const
connectionUrl
=
this
.
apiUrl
+
this
.
apiUrl
.
comment
+
'
/
'
+
comment
.
id
;
const
connectionUrl
=
this
.
apiUrl
.
base
+
this
.
apiUrl
.
comment
+
'
/
'
+
comment
.
id
;
return
this
.
http
.
put
(
connectionUrl
,
comment
,
httpOptions
).
pipe
(
return
this
.
http
.
put
(
connectionUrl
,
comment
,
httpOptions
).
pipe
(
tap
(
_
=>
''
),
tap
(
_
=>
''
),
catchError
(
this
.
handleError
<
any
>
(
'
updateComment
'
))
catchError
(
this
.
handleError
<
any
>
(
'
updateComment
'
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment