mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(mobile): make user.memoryEnable optional (#3680)
* chore(server): avoid breaking changes * generate api * mobile app
This commit is contained in:
parent
b1b215f083
commit
0d80ae3a91
2
cli/src/api/open-api/api.ts
generated
2
cli/src/api/open-api/api.ts
generated
@ -3159,7 +3159,7 @@ export interface UserResponseDto {
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof UserResponseDto
|
* @memberof UserResponseDto
|
||||||
*/
|
*/
|
||||||
'memoriesEnabled': boolean;
|
'memoriesEnabled'?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
@ -342,10 +342,11 @@ class HomePage extends HookConsumerWidget {
|
|||||||
listener: selectionListener,
|
listener: selectionListener,
|
||||||
selectionActive: selectionEnabledHook.value,
|
selectionActive: selectionEnabledHook.value,
|
||||||
onRefresh: refreshAssets,
|
onRefresh: refreshAssets,
|
||||||
topWidget:
|
topWidget: (currentUser != null &&
|
||||||
(currentUser != null && currentUser.memoryEnabled)
|
currentUser.memoryEnabled != null &&
|
||||||
? const MemoryLane()
|
currentUser.memoryEnabled!)
|
||||||
: const SizedBox(),
|
? const MemoryLane()
|
||||||
|
: const SizedBox(),
|
||||||
),
|
),
|
||||||
error: (error, _) => Center(child: Text(error.toString())),
|
error: (error, _) => Center(child: Text(error.toString())),
|
||||||
loading: buildLoadingIndicator,
|
loading: buildLoadingIndicator,
|
||||||
|
@ -44,7 +44,7 @@ class User {
|
|||||||
bool isPartnerSharedWith;
|
bool isPartnerSharedWith;
|
||||||
bool isAdmin;
|
bool isAdmin;
|
||||||
String profileImagePath;
|
String profileImagePath;
|
||||||
bool memoryEnabled;
|
bool? memoryEnabled;
|
||||||
@Backlink(to: 'owner')
|
@Backlink(to: 'owner')
|
||||||
final IsarLinks<Album> albums = IsarLinks<Album>();
|
final IsarLinks<Album> albums = IsarLinks<Album>();
|
||||||
@Backlink(to: 'sharedUsers')
|
@Backlink(to: 'sharedUsers')
|
||||||
|
BIN
mobile/openapi/doc/UserResponseDto.md
generated
BIN
mobile/openapi/doc/UserResponseDto.md
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/user_response_dto.dart
generated
BIN
mobile/openapi/lib/model/user_response_dto.dart
generated
Binary file not shown.
@ -7152,8 +7152,7 @@
|
|||||||
"createdAt",
|
"createdAt",
|
||||||
"deletedAt",
|
"deletedAt",
|
||||||
"updatedAt",
|
"updatedAt",
|
||||||
"oauthId",
|
"oauthId"
|
||||||
"memoriesEnabled"
|
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
@ -14,7 +14,7 @@ export class UserResponseDto {
|
|||||||
deletedAt!: Date | null;
|
deletedAt!: Date | null;
|
||||||
updatedAt!: Date;
|
updatedAt!: Date;
|
||||||
oauthId!: string;
|
oauthId!: string;
|
||||||
memoriesEnabled!: boolean;
|
memoriesEnabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function mapUser(entity: UserEntity): UserResponseDto {
|
export function mapUser(entity: UserEntity): UserResponseDto {
|
||||||
|
2
web/src/api/open-api/api.ts
generated
2
web/src/api/open-api/api.ts
generated
@ -3159,7 +3159,7 @@ export interface UserResponseDto {
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof UserResponseDto
|
* @memberof UserResponseDto
|
||||||
*/
|
*/
|
||||||
'memoriesEnabled': boolean;
|
'memoriesEnabled'?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
Loading…
Reference in New Issue
Block a user