mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
Update Flow to 1.22.0, fix #2010
Move entity types out of flow directory into the entity files. Rename TutanotaFile into File. Rename CalendarEventBubble attrs onEventClicked -> click because it doesn't have access to the event. Use domInput in Dropdown when selecting filtered result because that's what DropdownN does. Our current build system is not aware about any recent Flow syntax and it doesn't know that it should transpile functionCall<type>() into functionCall(). We have to avoid such syntax for now
This commit is contained in:
parent
b89bf0f19e
commit
14f01b3eeb
476 changed files with 4356 additions and 3485 deletions
|
|
@ -26,6 +26,7 @@ import {SecondFactorTypeRef} from "../../entities/sys/SecondFactor"
|
|||
import {RecoverCodeTypeRef} from "../../entities/sys/RecoverCode"
|
||||
import {NotAuthorizedError, NotFoundError} from "../../common/error/RestError"
|
||||
import {MailTypeRef} from "../../entities/tutanota/Mail"
|
||||
import type {EntityUpdate} from "../../entities/sys/EntityUpdate"
|
||||
|
||||
const ValueType = EC.ValueType
|
||||
|
||||
|
|
@ -142,7 +143,7 @@ export class EntityRestCache implements EntityRestInterface {
|
|||
}
|
||||
} else {
|
||||
throw new Error("invalid request params: " + String(listId) + ", " + String(id) + ", "
|
||||
+ JSON.stringify(queryParameter))
|
||||
+ String(JSON.stringify(queryParameter)))
|
||||
}
|
||||
} else {
|
||||
return this._entityRestClient.entityRequest(typeRef, method, listId, id, entity, queryParameter, extraHeaders)
|
||||
|
|
@ -152,8 +153,12 @@ export class EntityRestCache implements EntityRestInterface {
|
|||
isRangeRequest(listId: ?Id, id: ?Id, queryParameter: ?Params) {
|
||||
// check for null and undefined because "" and 0 are als falsy
|
||||
return listId && !id
|
||||
&& queryParameter && queryParameter["start"] !== null && queryParameter["start"] !== undefined && queryParameter["count"] !== null
|
||||
&& queryParameter["count"] !== undefined && queryParameter["reverse"]
|
||||
&& queryParameter
|
||||
&& queryParameter["start"] !== null
|
||||
&& queryParameter["start"] !== undefined
|
||||
&& queryParameter["count"] !== null
|
||||
&& queryParameter["count"] !== undefined
|
||||
&& queryParameter["reverse"]
|
||||
}
|
||||
|
||||
_loadMultiple<T>(typeRef: TypeRef<T>, method: HttpMethodEnum, listId: ?Id, id: ?Id, entity: ?T, queryParameter: Params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue