Merge branch 'master' into hangup

This commit is contained in:
Beatrice Olivera 2018-09-04 14:53:57 +01:00 committed by GitHub
commit 73283b1fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View File

@ -40,13 +40,13 @@ hangUpIcon.addEventListener('click', event => {
}) })
// Testing ActionCable // Testing ActionCable
// const testBtn = document.getElementById('test-btn') const testBtn = document.getElementById('test-btn')
// testBtn.addEventListener('click', event => { testBtn.addEventListener('click', event => {
// fetch(`/chat_rooms/${chatroomId}/cable_testing` , { fetch(`/chat_rooms/${chatroomId}/cable_testing` , {
// method: 'POST', method: 'POST',
// body: JSON.stringify({}) body: JSON.stringify({})
// }) })
// }) })

View File

@ -1,3 +1,4 @@
<button id="test-btn" class="btn btn-primary">Test Connection</button>
<div id="join-btn" data-room="<%= @chat_room.id %>"></div> <div id="join-btn" data-room="<%= @chat_room.id %>"></div>
<div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div> <div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div>