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
13ebd313
Commit
13ebd313
authored
6 years ago
by
Lukas Mauß
Browse files
Options
Downloads
Patches
Plain Diff
Remove useless code
parent
3b10b106
Branches
Branches containing commit
Tags
Tags containing commit
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-list/comment-list.component.ts
+0
-1
0 additions, 1 deletion
.../components/shared/comment-list/comment-list.component.ts
src/app/components/shared/comment/comment.component.ts
+0
-20
0 additions, 20 deletions
src/app/components/shared/comment/comment.component.ts
with
0 additions
and
21 deletions
src/app/components/shared/comment-list/comment-list.component.ts
+
0
−
1
View file @
13ebd313
...
...
@@ -62,7 +62,6 @@ export class CommentListComponent implements OnInit {
for
(
let
i
=
0
;
i
<
this
.
comments
.
length
;
i
++
)
{
if
(
payload
.
id
===
this
.
comments
[
i
].
id
)
{
for
(
const
[
key
,
value
]
of
Object
.
entries
(
payload
.
changes
))
{
console
.
log
(
value
);
switch
(
key
)
{
case
'
read
'
:
this
.
comments
[
i
].
read
=
value
;
break
;
...
...
This diff is collapsed.
Click to expand it.
src/app/components/shared/comment/comment.component.ts
+
0
−
20
View file @
13ebd313
...
...
@@ -38,17 +38,14 @@ export class CommentComponent implements OnInit {
setRead
(
comment
:
Comment
):
void
{
this
.
comment
=
this
.
wsCommentService
.
toggleRead
(
comment
);
// this.commentService.updateComment(comment).subscribe();
}
setCorrect
(
comment
:
Comment
):
void
{
this
.
comment
=
this
.
wsCommentService
.
toggleCorrect
(
comment
);
// this.commentService.updateComment(comment).subscribe();
}
setFavorite
(
comment
:
Comment
):
void
{
this
.
comment
=
this
.
wsCommentService
.
toggleFavorite
(
comment
);
// this.commentService.updateComment(comment).subscribe();
}
delete
(
comment
:
Comment
):
void
{
...
...
@@ -56,21 +53,4 @@ export class CommentComponent implements OnInit {
this
.
notification
.
show
(
`Comment '
${
comment
.
body
}
' successfully deleted.`
);
});
}
/*
parseIncomingMessage(message: Message) {
const msg = JSON.parse(message.body);
const payload = msg.payload;
if (payload.id === this.comment.id) {
for (const [key, value] of Object.entries(payload.changes)) {
console.log(value);
switch (key) {
case 'read': this.comment.read = value;
break;
case 'correct' : this.comment.correct = value;
break;
case 'favorite' : this.comment.favorite = value;
}
}
}
} */
}
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