Fixed some bugs

This commit is contained in:
WolverinDEV 2018-09-30 22:58:53 +02:00
parent b62c6fc339
commit b062dd7d06
4 changed files with 6 additions and 3 deletions

View file

@ -3,6 +3,7 @@
- Added the permission system (Assignments and management)
* Fixed poke and client description with empty message
* Fixed channel tree icons
* Fixed group sorting
* **26.09.18**:
- Added Safari support

View file

@ -82,9 +82,9 @@ class GroupManager {
static sorter() : (a: Group, b: Group) => number {
return (a, b) => {
if(a.properties.sortid < b.properties.sortid)
return 1;
if(a.properties.sortid > b.properties.sortid)
return 1;
if(a.properties.sortid < b.properties.sortid)
return -1;
if(a.id < b.id)

View file

@ -663,6 +663,8 @@ class LocalClientEntry extends ClientEntry {
},
type: MenuEntryType.ENTRY
},
MenuEntry.HR(),
...this.assignment_context(),
MenuEntry.CLOSE(on_close)
);
}

View file

@ -7,7 +7,7 @@ namespace Modals {
let groups = tag["groups"] = [];
tag["client_name"] = client.clientNickName();
for(let group of client.channelTree.client.groups.serverGroups) {
for(let group of client.channelTree.client.groups.serverGroups.sort(GroupManager.sorter())) {
if(group.type != GroupType.NORMAL) continue;
let entry = {} as any;