Adjust UI

This commit is contained in:
Hillel Coren 2021-09-27 11:13:32 +03:00
parent 9f159ffe3b
commit fdfeb7be39
2 changed files with 0 additions and 9 deletions

View File

@ -47,7 +47,6 @@ class DeviceSettingsVM {
@required this.onHistoryModeChanged,
@required this.onColorThemeChanged,
@required this.onRowsPerPageChanged,
@required this.onPreviewSidebarChanged,
@required this.onCustomColorsChanged,
@required this.onPersistDataChanged,
});
@ -96,9 +95,6 @@ class DeviceSettingsVM {
store.dispatch(UpdateUserPreferences(colorTheme: value));
}
},
onPreviewSidebarChanged: (context, value) {
store.dispatch(UpdateUserPreferences(isPreviewEnabled: value));
},
onRowsPerPageChanged: (context, value) {
store.dispatch(UpdateUserPreferences(rowsPerPage: value));
},
@ -164,7 +160,6 @@ class DeviceSettingsVM {
final Function(BuildContext) onLogoutTap;
final Function(BuildContext, bool) onDarkModeChanged;
final Function(BuildContext, BuiltMap<String, String>) onCustomColorsChanged;
final Function(BuildContext, bool) onPreviewSidebarChanged;
final Function(BuildContext, AppLayout) onLayoutChanged;
final Function(BuildContext, AppSidebarMode) onMenuModeChanged;
final Function(BuildContext, AppSidebarMode) onHistoryModeChanged;

View File

@ -285,10 +285,6 @@ void handleStubAction(
case EntityAction.edit:
editEntity(context: context, entity: stub);
break;
case EntityAction.preview:
store.dispatch(UpdateUserPreferences(isPreviewEnabled: true));
viewEntity(entity: stub);
break;
case EntityAction.restore:
store.dispatch(RestoreStubsRequest(
snackBarCompleter<Null>(context, localization.restoredStub), stubIds));