Back button
This commit is contained in:
parent
1505aabd33
commit
e33989dec6
|
|
@ -17,6 +17,7 @@ import 'package:invoiceninja_flutter/redux/payment/payment_actions.dart';
|
|||
import 'package:invoiceninja_flutter/redux/product/product_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/project/project_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/quote/quote_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/settings/settings_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/task/task_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/tax_rate/tax_rate_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/ui/pref_state.dart';
|
||||
|
|
@ -333,6 +334,7 @@ void viewEntityById({
|
|||
bool showError = true,
|
||||
}) {
|
||||
final store = StoreProvider.of<AppState>(context);
|
||||
final state = store.state;
|
||||
final navigator = Navigator.of(context);
|
||||
|
||||
if (entityId != null &&
|
||||
|
|
@ -344,6 +346,11 @@ void viewEntityById({
|
|||
return;
|
||||
}
|
||||
|
||||
if (!state.prefState.isPreviewVisible &&
|
||||
state.prefState.moduleLayout == ModuleLayout.table) {
|
||||
store.dispatch(UserSettingsChanged(isPreviewVisible: true));
|
||||
}
|
||||
|
||||
switch (entityType) {
|
||||
case EntityType.client:
|
||||
store.dispatch(ViewClient(
|
||||
|
|
|
|||
Loading…
Reference in New Issue