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
@@ -42,6 +42,7 @@ export interface ClientInfo {
|
||||
export interface GroupEntry {
|
||||
id: number;
|
||||
name: string;
|
||||
iconId: number;
|
||||
}
|
||||
|
||||
export interface PermissionOverviewEntry {
|
||||
@@ -338,8 +339,8 @@ export class Ts3Connection {
|
||||
message: string;
|
||||
timestamp: string;
|
||||
}
|
||||
| { type: "channelGroupList"; entries: { id: number; name: string }[] }
|
||||
| { type: "serverGroupList"; entries: { id: number; name: string }[] }
|
||||
| { type: "channelGroupList"; entries: GroupEntry[] }
|
||||
| { type: "serverGroupList"; entries: GroupEntry[] }
|
||||
| {
|
||||
type: "permissionOverview";
|
||||
entries: { name: string; description: string; value: number; negated: boolean; skip: boolean }[];
|
||||
|
||||
Reference in new issue
Block a user