High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): readonly mode fixes (#21545)
Sudheer Reddy Puthana4d8433808693
diff --git a/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dartindex e581e32df0..3111512823 100644--- a/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart+++ b/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart@@ -62,7 +62,7 @@ class ViewerBottomBar extends ConsumerWidget {duration: Durations.short2,child: AnimatedSwitcher(duration: Durations.short4,- child: isSheetOpen || isReadonlyModeEnabled+ child: isSheetOpen? const SizedBox.shrink(): Theme(data: context.themeData.copyWith(@@ -72,14 +72,14 @@ class ViewerBottomBar extends ConsumerWidget {),),child: Container(- height: context.padding.bottom + (asset.isVideo ? 160 : 90),color: Colors.black.withAlpha(125),- padding: EdgeInsets.only(bottom: context.padding.bottom),+ padding: EdgeInsets.only(bottom: context.padding.bottom, top: 16),child: Column(mainAxisAlignment: MainAxisAlignment.end,children: [if (asset.isVideo) const VideoControls(),- if (!isInLockedView) Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: actions),+ if (!isInLockedView && !isReadonlyModeEnabled)+ Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: actions),],),),diff --git a/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart b/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dartindex b204058859..e504cf0675 100644--- a/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart+++ b/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart@@ -1,7 +1,8 @@import 'package:auto_route/auto_route.dart';import 'package:easy_localization/easy_localization.dart';import 'package:flutter/material.dart';-import 'package:flutter_hooks/flutter_hooks.dart';+import 'package:flutter_hooks/flutter_hooks.dart' hide Store;+import 'package:immich_mobile/entities/store.entity.dart';import 'package:hooks_riverpod/hooks_riverpod.dart';import 'package:immich_mobile/extensions/build_context_extensions.dart';import 'package:immich_mobile/models/backup/backup_state.model.dart';@@ -259,7 +260,7 @@ class ImmichAppBarDialog extends HookConsumerWidget {const AppBarProfileInfoBox(),buildStorageInformation(),const AppBarServerInfo(),- if (isReadonlyModeEnabled) buildReadonlyMessage(),+ if (Store.isBetaTimelineEnabled && isReadonlyModeEnabled) buildReadonlyMessage(),buildAppLogButton(),buildSettingButton(),buildSignOutButton(),