diff --git a/hbd/server/templates/settings.html b/hbd/server/templates/settings.html
index c4f3379..916d908 100644
--- a/hbd/server/templates/settings.html
+++ b/hbd/server/templates/settings.html
@@ -500,12 +500,12 @@
|
|
|
-
- {% for ch in all_channel_names %}
-
- {% endfor %}
+ |
+
|
|
|
@@ -847,7 +847,7 @@
full_name: row.querySelector('.user-full-name').value,
avatar: row.querySelector('.user-avatar').value,
admin: row.querySelector('.user-admin').checked,
- notification_channels: [...row.querySelectorAll('.user-ch:checked')].map(cb => cb.value),
+ notification_channels: [...(row.querySelector('.user-ch-select')?.selectedOptions || [])].map(o => o.value),
};
const pw = row.querySelector('.user-password').value;
if (pw) entry.password = pw;
@@ -861,7 +861,7 @@
full_name: row.querySelector('.user-full-name').value,
avatar: row.querySelector('.user-avatar').value,
admin: row.querySelector('.user-admin').checked,
- notification_channels: [...row.querySelectorAll('.user-ch:checked')].map(cb => cb.value),
+ notification_channels: [...(row.querySelector('.user-ch-select')?.selectedOptions || [])].map(o => o.value),
};
const pw = row.querySelector('.user-password').value;
if (pw) entry.password = pw;
@@ -974,9 +974,8 @@
function addUserRow() {
const tbody = document.getElementById('users-tbody');
- const chHtml = _allChannels.map(ch =>
- ``
- ).join('');
+ const opts = _allChannels.map(ch => ``).join('');
+ const chHtml = ``;
const row = document.createElement('tr');
row.setAttribute('data-new-user', 'true');
row.innerHTML = `