Skip to content

Commit

Permalink
removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
doljko committed Apr 3, 2024
1 parent f93c2c8 commit 340ae0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
8 changes: 6 additions & 2 deletions addon/components/chat-window.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<div class="absolute bottom-0 right-0">

{{! template-lint-disable no-inline-styles }}
<div class="bg-gray-400 absolute right-0 bottom-0" style="right: 54px;">
<div class="flex justify-center h-64 w-80" style="height: 400px; right: 54px; bottom:8px">Lanna</div>
<div class="inset-x-2.5">
<InputGroup />
</div>
</div>
19 changes: 1 addition & 18 deletions addon/components/chat-window.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';

export default class ChatWindowComponent extends Component {
@service socket;
@service chat;
@tracked channel;
constructor(owner, { chatChannel }) {
super(...arguments);
this.channel = chatChannel;
this.listen();
}

listen() {
this.socket.listen(`chat.${this.channel.public_id}`, (event) => {
console.log('[chat event]', event);
});
}
}
export default class ChatWindowComponent extends Component {}

0 comments on commit 340ae0e

Please sign in to comment.