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
f34b2ed7
Commit
f34b2ed7
authored
5 years ago
by
Tom Käsler
Browse files
Options
Downloads
Patches
Plain Diff
Enrich comment model with tag
parent
fb55e72b
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/models/comment.ts
+4
-1
4 additions, 1 deletion
src/app/models/comment.ts
src/app/models/messages/create-comment.ts
+4
-2
4 additions, 2 deletions
src/app/models/messages/create-comment.ts
with
8 additions
and
3 deletions
src/app/models/comment.ts
+
4
−
1
View file @
f34b2ed7
...
...
@@ -14,6 +14,7 @@ export class Comment {
createdFromLecturer
:
boolean
;
highlighted
:
boolean
;
ack
:
boolean
;
tag
:
string
;
constructor
(
roomId
:
string
=
''
,
creatorId
:
string
=
''
,
...
...
@@ -25,7 +26,8 @@ export class Comment {
score
:
number
=
0
,
createdFromLecturer
=
false
,
highlighted
:
boolean
=
false
,
ack
:
boolean
=
true
)
{
ack
:
boolean
=
true
,
tag
:
string
=
''
)
{
this
.
id
=
''
;
this
.
roomId
=
roomId
;
this
.
creatorId
=
creatorId
;
...
...
@@ -39,5 +41,6 @@ export class Comment {
this
.
createdFromLecturer
=
createdFromLecturer
;
this
.
highlighted
=
highlighted
;
this
.
ack
=
ack
;
this
.
tag
=
tag
;
}
}
This diff is collapsed.
Click to expand it.
src/app/models/messages/create-comment.ts
+
4
−
2
View file @
f34b2ed7
...
...
@@ -4,14 +4,16 @@ export class CreateComment {
roomId
:
string
;
creatorId
:
string
;
body
:
string
;
tag
:
string
;
};
constructor
(
roomId
:
string
,
creatorId
:
string
,
body
:
string
)
{
constructor
(
roomId
:
string
,
creatorId
:
string
,
body
:
string
,
tag
:
string
=
''
)
{
this
.
type
=
'
CreateComment
'
;
this
.
payload
=
{
roomId
:
roomId
,
creatorId
:
creatorId
,
body
:
body
body
:
body
,
tag
:
tag
};
}
}
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