Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
738b5579
Commit
738b5579
authored
Oct 04, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug on comment answers + traces on answers
parent
924fa2bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
comment.component.html
src/app/components/comment/comment.component.html
+3
-3
comment.component.ts
src/app/components/comment/comment.component.ts
+4
-0
No files found.
src/app/components/comment/comment.component.html
View file @
738b5579
...
...
@@ -6,15 +6,15 @@
<button
mat-button
(
click
)="
removeComment
(
index
)"
>
Supprimer
</button>
</div>
</div>
<div
class=
"form-answers"
*
ngFor=
"let answer of comment.answers, let i = index"
>
<textarea
[
disabled
]="!
answerEditables
[
i
]"
[(
ngModel
)]="
comment
.
answers
[
i
]"
>
Une réponse
</textarea>
<div
class=
"form-answers"
*
ngFor=
"let answer of comment.answers, let i = index
;trackBy:trackByIdx
"
>
<textarea
[
disabled
]="!
answerEditables
[
i
]"
[(
ngModel
)]="
comment
.
answers
[
i
]"
(
change
)="
editTrace
($
event
,'
answer_
['+
i
+']')"
>
Une réponse
</textarea>
<div
class=
"form-comment-buttons"
>
<button
mat-button
(
click
)="
this
.
answerEditables
[
i
]
=
!
this
.
answerEditables
[
i
]"
>
Modifier
</button>
<button
mat-button
(
click
)="
removeAnswer
(
i
)"
>
Supprimer
</button>
</div>
</div>
<div
class=
"form-newanswer"
>
<textarea
[(
ngModel
)]="
newAnswer
"
></textarea>
<textarea
[(
ngModel
)]="
newAnswer
"
(
change
)="
editTrace
($
event
,'
newAnswer
')"
></textarea>
<div
class=
"form-newanswer-buttons"
>
<button
mat-button
(
click
)="
addAnswer
()"
>
Répondre
</button>
</div>
...
...
src/app/components/comment/comment.component.ts
View file @
738b5579
...
...
@@ -67,6 +67,10 @@ export class CommentComponent implements OnInit {
});
}
trackByIdx
(
index
:
number
,
obj
:
any
):
any
{
return
index
;
}
formatTraceTarget
():
string
{
let
res
:
string
=
''
;
...
...
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