Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ai
Commits
9779ecb2
Commit
9779ecb2
authored
3 months ago
by
Mark Jones
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3487717
: Add completed class at chat-message level after loading.
parent
980a9cb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!272
Issue #3487717: Add completed class at chat-message level after loading.
Pipeline
#339756
passed
3 months ago
Stage: build
Stage: validate
Stage: test
Stage: .post
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/ai_chatbot/js/form-stream.js
+2
-0
2 additions, 0 deletions
modules/ai_chatbot/js/form-stream.js
modules/ai_chatbot/templates/ai-chatbot-message.html.twig
+9
-1
9 additions, 1 deletion
modules/ai_chatbot/templates/ai-chatbot-message.html.twig
with
11 additions
and
1 deletion
modules/ai_chatbot/js/form-stream.js
+
2
−
0
View file @
9779ecb2
...
...
@@ -91,10 +91,12 @@
onprogress
:
function
(
event
)
{
responseField
.
html
(
isHtml
?
event
.
currentTarget
.
response
:
converter
.
makeHtml
(
event
.
currentTarget
.
response
));
$
(
'
.chat-history
'
).
scrollTop
(
$
(
'
.chat-history
'
)[
0
].
scrollHeight
);
responseField
.
parentsUntil
(
'
chat-message
'
).
parent
().
addClass
(
'
chat-message--complete
'
);
},
onended
:
function
(
event
)
{
responseField
.
html
(
isHtml
?
event
.
currentTarget
.
response
:
converter
.
makeHtml
(
event
.
currentTarget
.
response
));
$
(
'
.chat-history
'
).
scrollTop
(
$
(
'
.chat-history
'
)[
0
].
scrollHeight
);
responseField
.
parentsUntil
(
'
chat-message
'
).
parent
().
addClass
(
'
chat-message--complete
'
);
}
}
});
...
...
This diff is collapsed.
Click to expand it.
modules/ai_chatbot/templates/ai-chatbot-message.html.twig
+
9
−
1
View file @
9779ecb2
<div
class=
"chat-message clearfix"
>
{%
set
classes
=
[
'chat-message'
,
'clearfix'
,
message
?
'chat-message--complete'
,
]
%}
<div
class=
{{
classes
|
join
(
' '
)
}}
>
<img
src=
"
{{
bot_image
}}
"
alt=
""
width=
"32"
height=
"32"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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