mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Add server group icon badges and a 'no talk power' status icon
Group icons were entirely missing from the data model - GroupEntry only carried id/name. Added icon_id (from ServerGroup/ChannelGroup's Icon field) through connector -> gateway -> frontend, matching the same channel-0 icon_<id> file convention already used for server icons (#77), reusing that dialog's fetch/cache/render plumbing (serverIconImages, iconDataUrl). Client rows now render a small badge per server group with a non-zero icon, positioned after the name/status icons (i.e. on the right), instead of not existing at all. Also added a 🔒 status icon for clients who aren't muted but still can't talk due to insufficient talk power in a moderated channel (previously no icon indicated this state at all).
This commit is contained in:
1 parent
6e343c4d4c
commit
b7ef6f78e7
6 files changed
+76
-14
No files matched your search
+8
-8
@@ -43,17 +43,17 @@ const DEMO_CHANNELS: DemoChannel[] = [
|
||||
];
|
||||
|
||||
const DEMO_CHANNEL_GROUPS = [
|
||||
{ id: 1, name: "Channel Admin" },
|
||||
{ id: 2, name: "Operator" },
|
||||
{ id: 3, name: "Voice" },
|
||||
{ id: 4, name: "Guest" },
|
||||
{ id: 1, name: "Channel Admin", iconId: 0 },
|
||||
{ id: 2, name: "Operator", iconId: 0 },
|
||||
{ id: 3, name: "Voice", iconId: 0 },
|
||||
{ id: 4, name: "Guest", iconId: 0 },
|
||||
];
|
||||
|
||||
const DEMO_SERVER_GROUPS = [
|
||||
{ id: 1, name: "Server Admin" },
|
||||
{ id: 2, name: "Moderator" },
|
||||
{ id: 3, name: "Trusted" },
|
||||
{ id: 4, name: "Guest" },
|
||||
{ id: 1, name: "Server Admin", iconId: 0 },
|
||||
{ id: 2, name: "Moderator", iconId: 0 },
|
||||
{ id: 3, name: "Trusted", iconId: 0 },
|
||||
{ id: 4, name: "Guest", iconId: 0 },
|
||||
];
|
||||
|
||||
const DEMO_NPCS: DemoClient[] = [
|
||||
|
||||
Reference in new issue
Block a user