Adjust UI
This commit is contained in:
parent
2b9867c66e
commit
b1cabf9c76
|
|
@ -197,10 +197,12 @@ class EntityTopFilter extends StatelessWidget {
|
||||||
Icons.clear,
|
Icons.clear,
|
||||||
color: state.headerTextColor,
|
color: state.headerTextColor,
|
||||||
),
|
),
|
||||||
onPressed: () => store.dispatch(FilterByEntity(
|
onPressed: () => store.dispatch(
|
||||||
entityId: uiState.filterEntityId,
|
FilterByEntity(
|
||||||
entityType: uiState.filterEntityType,
|
entityId: uiState.filterEntityId,
|
||||||
)),
|
entityType: uiState.filterEntityType,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -54,13 +54,18 @@ class ViewScaffold extends StatelessWidget {
|
||||||
|
|
||||||
Widget leading;
|
Widget leading;
|
||||||
if (isDesktop(context)) {
|
if (isDesktop(context)) {
|
||||||
if ((isFilter ?? false) &&
|
if (isFilter == true &&
|
||||||
entity.entityType == state.uiState.filterEntityType) {
|
entity.entityType == state.uiState.filterEntityType) {
|
||||||
leading = IconButton(
|
leading = IconButton(
|
||||||
tooltip: localization.hideSidebar,
|
|
||||||
icon: Icon(Icons.clear),
|
icon: Icon(Icons.clear),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
store.dispatch(UpdateUserPreferences(showFilterSidebar: false));
|
final uiState = state.uiState;
|
||||||
|
final entityType = uiState.filterEntityType;
|
||||||
|
store.dispatch(FilterByEntity(
|
||||||
|
entityId: uiState.filterEntityId,
|
||||||
|
entityType: uiState.filterEntityType,
|
||||||
|
));
|
||||||
|
viewEntitiesByType(entityType: entityType);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else if (state.uiState.previewStack.isNotEmpty) {
|
} else if (state.uiState.previewStack.isNotEmpty) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue