fix: Add labels to each cubit using repositories and state properties, remove label cubits

This commit is contained in:
Anton Stubenbord
2023-04-04 20:30:25 +02:00
parent 78fbd042a6
commit a2388b014b
95 changed files with 4790 additions and 1823 deletions

View File

@@ -82,10 +82,7 @@ class AccountSettingsDialog extends StatelessWidget {
try {
await context.read<AuthenticationCubit>().logout();
await context.read<ApplicationSettingsCubit>().clear();
await context.read<LabelRepository<Tag>>().clear();
await context.read<LabelRepository<Correspondent>>().clear();
await context.read<LabelRepository<DocumentType>>().clear();
await context.read<LabelRepository<StoragePath>>().clear();
await context.read<LabelRepository>().clear();
await context.read<SavedViewRepository>().clear();
await HydratedBloc.storage.clear();
} on PaperlessServerException catch (error, stackTrace) {