Fixed some bugs
This commit is contained in:
parent
b62c6fc339
commit
b062dd7d06
4 changed files with 6 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
- Added the permission system (Assignments and management)
|
- Added the permission system (Assignments and management)
|
||||||
* Fixed poke and client description with empty message
|
* Fixed poke and client description with empty message
|
||||||
* Fixed channel tree icons
|
* Fixed channel tree icons
|
||||||
|
* Fixed group sorting
|
||||||
|
|
||||||
* **26.09.18**:
|
* **26.09.18**:
|
||||||
- Added Safari support
|
- Added Safari support
|
||||||
|
|
|
@ -82,9 +82,9 @@ class GroupManager {
|
||||||
|
|
||||||
static sorter() : (a: Group, b: Group) => number {
|
static sorter() : (a: Group, b: Group) => number {
|
||||||
return (a, b) => {
|
return (a, b) => {
|
||||||
if(a.properties.sortid < b.properties.sortid)
|
|
||||||
return 1;
|
|
||||||
if(a.properties.sortid > b.properties.sortid)
|
if(a.properties.sortid > b.properties.sortid)
|
||||||
|
return 1;
|
||||||
|
if(a.properties.sortid < b.properties.sortid)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if(a.id < b.id)
|
if(a.id < b.id)
|
||||||
|
|
|
@ -663,6 +663,8 @@ class LocalClientEntry extends ClientEntry {
|
||||||
},
|
},
|
||||||
type: MenuEntryType.ENTRY
|
type: MenuEntryType.ENTRY
|
||||||
},
|
},
|
||||||
|
MenuEntry.HR(),
|
||||||
|
...this.assignment_context(),
|
||||||
MenuEntry.CLOSE(on_close)
|
MenuEntry.CLOSE(on_close)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace Modals {
|
||||||
let groups = tag["groups"] = [];
|
let groups = tag["groups"] = [];
|
||||||
|
|
||||||
tag["client_name"] = client.clientNickName();
|
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;
|
if(group.type != GroupType.NORMAL) continue;
|
||||||
|
|
||||||
let entry = {} as any;
|
let entry = {} as any;
|
||||||
|
|
Loading…
Add table
Reference in a new issue