diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-28 10:09:38 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-28 10:09:38 +0200 |
| commit | 232ce4ae82179245b402ffc3bd473565329e5e16 (patch) | |
| tree | 38cb9b1f8007009e39b462bcda16830aa2b0ede3 /packages/meshbay-hub/src/meshbay_hub/static/group-settings.js | |
| parent | 471fa6242fc56a035a8c9639722a82b9341328c2 (diff) | |
| parent | 58ca879b017da62e77f40752d8d94fef3f315a1e (diff) | |
| download | meshbay-232ce4ae82179245b402ffc3bd473565329e5e16.tar.gz | |
Merge branch 'feat/group-name-per-owner'
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/group-settings.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/group-settings.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/group-settings.js b/packages/meshbay-hub/src/meshbay_hub/static/group-settings.js index 60b0184..59d1456 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/group-settings.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/group-settings.js @@ -1244,7 +1244,9 @@ function GroupSettingsPanel({ groupId, group, token, transportRef, gekRef, ${isOwner ? html` <button class="admin-btn danger" onClick=${async () => { - if (!confirm(t('group.delete_group_confirm', { name: group.name }))) return; + if (!confirm(t('group.delete_group_confirm', { + name: group.owner_username ? `${group.name}@${group.owner_username}` : group.name, + }))) return; try { // Node detach first (reversible), then hub delete (irreversible) if (nodeDetected && nodeGroupName) { @@ -1263,7 +1265,9 @@ function GroupSettingsPanel({ groupId, group, token, transportRef, gekRef, ` : html` <button class="admin-btn danger" onClick=${async () => { - if (!confirm(t('group.leave_confirm', { name: group.name }))) return; + if (!confirm(t('group.leave_confirm', { + name: group.owner_username ? `${group.name}@${group.owner_username}` : group.name, + }))) return; try { await hubFetch('/v1/groups/' + groupId + '/leave', { method: 'POST', token }); |