mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 14:07:59 -06:00
feat: Add statistics card on landing page
This commit is contained in:
@@ -61,7 +61,6 @@ class InboxCubit extends HydratedCubit<InboxState>
|
||||
Future<void> initialize() async {
|
||||
await refreshItemsInInboxCount(false);
|
||||
await loadInbox();
|
||||
super.initialize();
|
||||
}
|
||||
|
||||
Future<void> refreshItemsInInboxCount([bool shouldLoadInbox = true]) async {
|
||||
|
||||
@@ -214,6 +214,10 @@ class _InboxPageState extends State<InboxPage>
|
||||
}
|
||||
|
||||
Future<bool> _onItemDismissed(DocumentModel doc) async {
|
||||
if (!context.read<LocalUserAccount>().paperlessUser.canEditDocuments) {
|
||||
showSnackBar(context, S.of(context)!.missingPermissions);
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
final removedTags = await context.read<InboxCubit>().removeFromInbox(doc);
|
||||
showSnackBar(
|
||||
|
||||
Reference in New Issue
Block a user