mirror of
https://github.com/tutao/tutanota.git
synced 2025-10-19 07:53:47 +00:00
fix minor issues with new MailSet implementation after review #7429
This commit is contained in:
parent
0d14919a20
commit
e0ce2ac678
11 changed files with 86 additions and 104 deletions
|
@ -11,7 +11,7 @@ import { Icons } from "../gui/base/icons/Icons.js"
|
|||
import { BootIcons } from "../gui/base/icons/BootIcons.js"
|
||||
|
||||
import { compareGroupInfos } from "../api/common/utils/GroupUtils.js"
|
||||
import { elementIdPart, GENERATED_MAX_ID } from "../api/common/utils/EntityUtils.js"
|
||||
import { elementIdPart } from "../api/common/utils/EntityUtils.js"
|
||||
import { ListColumnWrapper } from "../gui/ListColumnWrapper.js"
|
||||
import { assertMainOrNode } from "../api/common/Env.js"
|
||||
import { locator } from "../api/main/CommonLocator.js"
|
||||
|
@ -217,10 +217,7 @@ export class UserListView implements UpdatableSettingsViewer {
|
|||
private makeListModel(): ListModel<GroupInfo> {
|
||||
const listModel = new ListModel<GroupInfo>({
|
||||
sortCompare: compareGroupInfos,
|
||||
fetch: async (startId) => {
|
||||
if (startId !== GENERATED_MAX_ID) {
|
||||
throw new Error("fetch user group infos called for specific start id")
|
||||
}
|
||||
fetch: async (_lastFetchedEntity) => {
|
||||
await this.loadAdmins()
|
||||
const listId = await this.listId.getAsync()
|
||||
const allUserGroupInfos = await locator.entityClient.loadAll(GroupInfoTypeRef, listId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue