diff options
Diffstat (limited to 'public/scripts')
-rw-r--r-- | public/scripts/chat.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/public/scripts/chat.js b/public/scripts/chat.js index 2f15683..86044be 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -380,6 +380,13 @@ function chat() { }); } + function addContactToList(contactId) { + $('#contact_list') + .append(`<column><button class="button action-button is-big is-outlined is-white is-centered" id="peer_${contactId}"><i class="fas fa-user"></i></button></column>`); + } + + addContactToList('TEST'); + /** * Shows modal for adding a contact * TODO: Fix selecting from dropdown on enter |