Tasks
This commit is contained in:
parent
f00e137016
commit
d4349dfdd2
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:invoiceninja_flutter/redux/dashboard/dashboard_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/task/task_actions.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/redux/product/product_actions.dart';
|
||||
|
|
@ -223,8 +224,8 @@ Middleware<AppState> _loadProjects(ProjectRepository repository) {
|
|||
if (action.completer != null) {
|
||||
action.completer.complete(null);
|
||||
}
|
||||
if (state.productState.isStale) {
|
||||
store.dispatch(LoadProducts());
|
||||
if (state.taskState.isStale) {
|
||||
store.dispatch(LoadTasks());
|
||||
}
|
||||
}).catchError((Object error) {
|
||||
print(error);
|
||||
|
|
|
|||
|
|
@ -310,8 +310,8 @@ Middleware<AppState> _loadQuotes(QuoteRepository repository) {
|
|||
if (action.completer != null) {
|
||||
action.completer.complete(null);
|
||||
}
|
||||
if (state.dashboardState.isStale) {
|
||||
store.dispatch(LoadDashboard());
|
||||
if (state.projectState.isStale) {
|
||||
store.dispatch(LoadProjects());
|
||||
}
|
||||
}).catchError((Object error) {
|
||||
print(error);
|
||||
|
|
|
|||
|
|
@ -216,9 +216,11 @@ Middleware<AppState> _loadStubs(StubRepository repository) {
|
|||
if (action.completer != null) {
|
||||
action.completer.complete(null);
|
||||
}
|
||||
/*
|
||||
if (state.productState.isStale) {
|
||||
store.dispatch(LoadProducts());
|
||||
}
|
||||
*/
|
||||
}).catchError((Object error) {
|
||||
print(error);
|
||||
store.dispatch(LoadStubsFailure(error));
|
||||
|
|
|
|||
Loading…
Reference in New Issue