From afd79d3a7f15f99a0c5dea8c5c78b696a496766e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 19 May 2020 23:49:05 +0300 Subject: [PATCH] Navigation changes --- lib/ui/app/menu_drawer.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ui/app/menu_drawer.dart b/lib/ui/app/menu_drawer.dart index 385f82ed0..0c72f8d9e 100644 --- a/lib/ui/app/menu_drawer.dart +++ b/lib/ui/app/menu_drawer.dart @@ -454,8 +454,8 @@ class _DrawerTileState extends State { ), ), onTap: () { + store.dispatch(ClearEntityFilter()); if (widget.entityType != null) { - store.dispatch(ClearEntityFilter()); viewEntitiesByType( context: context, entityType: widget.entityType); } else { @@ -622,6 +622,10 @@ class SidebarFooterCollapsed extends StatelessWidget { final Store store = StoreProvider.of(context); final localization = AppLocalization.of(context); + if (store.state.uiState.filterEntityType != null) { + return SizedBox(); + } + return Container( width: double.infinity, color: Theme.of(context).cardColor,