Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): readonly mode disable tabs when in landscape mode (#21475)

Brandon Weesb76d69c0e542
diff --git a/mobile/lib/pages/common/tab_shell.page.dart b/mobile/lib/pages/common/tab_shell.page.dart
index 41b01ad3a3..1ecb24d465 100644
--- a/mobile/lib/pages/common/tab_shell.page.dart
+++ b/mobile/lib/pages/common/tab_shell.page.dart
@@ -86,7 +86,14 @@ class _TabShellPageState extends ConsumerState<TabShellPage> {
Widget navigationRail(TabsRouter tabsRouter) {
return NavigationRail(
destinations: navigationDestinations
- .map((e) => NavigationRailDestination(icon: e.icon, label: Text(e.label), selectedIcon: e.selectedIcon))
+ .map(
+ (e) => NavigationRailDestination(
+ icon: e.icon,
+ label: Text(e.label),
+ selectedIcon: e.selectedIcon,
+ disabled: !e.enabled,
+ ),
+ )
.toList(),
onDestinationSelected: (index) => _onNavigationSelected(tabsRouter, index, ref),
selectedIndex: tabsRouter.activeIndex,