Navigation changes

This commit is contained in:
Hillel Coren 2020-05-19 23:49:05 +03:00
parent 523c0c93fb
commit afd79d3a7f
1 changed files with 5 additions and 1 deletions

View File

@ -454,8 +454,8 @@ class _DrawerTileState extends State<DrawerTile> {
),
),
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<AppState> store = StoreProvider.of<AppState>(context);
final localization = AppLocalization.of(context);
if (store.state.uiState.filterEntityType != null) {
return SizedBox();
}
return Container(
width: double.infinity,
color: Theme.of(context).cardColor,