Skip to content

Commit

Permalink
syntax refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Oct 17, 2023
1 parent 1f8d22f commit 0edf6c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions component/src/deepChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class DeepChat extends InternalHTML {
@Property('object')
directConnection?: DirectConnection;

// WORK - rename request to connect?
@Property('object')
request?: Request;

Expand Down Expand Up @@ -132,10 +133,7 @@ export class DeepChat extends InternalHTML {
submitUserMessage: (text: string) => void = () =>
console.warn('submitUserMessage failed - please wait for chat view to render before calling this property.');

// WORK - refactor to be one line
focusInput: () => void = () => {
FocusUtils.focusFromParentElement(this._elementRef);
};
focusInput: () => void = () => FocusUtils.focusFromParentElement(this._elementRef);

refreshMessages: () => void = () => {};

Expand Down

0 comments on commit 0edf6c6

Please sign in to comment.