Skip to content

Commit df83b91

Browse files
committed
append to the toolbar
1 parent d0f2fce commit df83b91

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dist/hellotext.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/controllers/webchat_controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var _default = /*#__PURE__*/function (_Controller) {
6767
this.messagesContainerTarget.addEventListener('scroll', this.onScroll);
6868
_hellotext.default.eventEmitter.dispatch('webchat:mounted');
6969
if (!_hellotext.default.business.features.white_label) {
70-
this.footerTarget.appendChild(_logo_builder.LogoBuilder.build());
70+
this.toolbarTarget.appendChild(_logo_builder.LogoBuilder.build());
7171
}
7272
_get(_getPrototypeOf(_default.prototype), "connect", this).call(this);
7373
}
@@ -396,4 +396,4 @@ _default.values = {
396396
default: undefined
397397
}
398398
};
399-
_default.targets = ['trigger', 'popover', 'input', 'attachmentInput', 'attachmentButton', 'errorMessageContainer', 'attachmentTemplate', 'attachmentContainer', 'attachment', 'messageTemplate', 'messagesContainer', 'title', 'onlineStatus', 'attachmentImage', 'footer'];
399+
_default.targets = ['trigger', 'popover', 'input', 'attachmentInput', 'attachmentButton', 'errorMessageContainer', 'attachmentTemplate', 'attachmentContainer', 'attachment', 'messageTemplate', 'messagesContainer', 'title', 'onlineStatus', 'attachmentImage', 'footer', 'toolbar'];

src/controllers/webchat_controller.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default class extends Controller {
3939
'onlineStatus',
4040
'attachmentImage',
4141
'footer',
42+
'toolbar'
4243
]
4344

4445
initialize() {
@@ -73,7 +74,7 @@ export default class extends Controller {
7374
Hellotext.eventEmitter.dispatch('webchat:mounted')
7475

7576
if (!Hellotext.business.features.white_label) {
76-
this.footerTarget.appendChild(LogoBuilder.build())
77+
this.toolbarTarget.appendChild(LogoBuilder.build())
7778
}
7879

7980
super.connect()

0 commit comments

Comments
 (0)