Hide project, tasks, vendors and expenses
This commit is contained in:
parent
002ad33d35
commit
b8f14d6d7b
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_middleware.dart';
|
||||
import 'package:invoiceninja_flutter/redux/dashboard/dashboard_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/ui/ui_actions.dart';
|
||||
|
|
@ -342,9 +343,15 @@ Middleware<AppState> _loadQuotes(QuoteRepository repository) {
|
|||
if (action.completer != null) {
|
||||
action.completer.complete(null);
|
||||
}
|
||||
// TODO update once supported
|
||||
if (state.dashboardState.isStale) {
|
||||
store.dispatch(LoadDashboard());
|
||||
}
|
||||
/*
|
||||
if (state.projectState.isStale) {
|
||||
store.dispatch(LoadProjects());
|
||||
}
|
||||
*/
|
||||
}).catchError((Object error) {
|
||||
print(error);
|
||||
store.dispatch(LoadQuotesFailure(error));
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ import 'package:invoiceninja_flutter/utils/icons.dart';
|
|||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||
import 'package:invoiceninja_flutter/redux/expense/expense_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/vendor/vendor_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/task/task_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/project/project_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/payment/payment_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/quote/quote_actions.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
|
@ -252,6 +248,7 @@ class AppDrawer extends StatelessWidget {
|
|||
context: context));
|
||||
},
|
||||
),
|
||||
/*
|
||||
DrawerTile(
|
||||
company: company,
|
||||
entityType: EntityType.project,
|
||||
|
|
@ -316,6 +313,7 @@ class AppDrawer extends StatelessWidget {
|
|||
context: context));
|
||||
},
|
||||
),
|
||||
*/
|
||||
// STARTER: menu - do not remove comment
|
||||
DrawerTile(
|
||||
company: company,
|
||||
|
|
|
|||
Loading…
Reference in New Issue