mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 01:21:14 +00:00
Merge pull request '0.7.0-hotfix' (#117) from 0.7.0-hotfix into master
Reviewed-on: https://git.selfprivacy.org/kherel/selfprivacy.org.app/pulls/117
This commit is contained in:
commit
46398f1391
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
import 'package:selfprivacy/config/get_it_config.dart';
|
||||
// import 'package:selfprivacy/config/get_it_config.dart';
|
||||
|
||||
class SimpleBlocObserver extends BlocObserver {
|
||||
SimpleBlocObserver();
|
||||
|
@ -11,9 +11,9 @@ class SimpleBlocObserver extends BlocObserver {
|
|||
final Object error,
|
||||
final StackTrace stackTrace,
|
||||
) {
|
||||
getIt<NavigationService>().showSnackBar(
|
||||
'Bloc error: ${error.toString()}',
|
||||
);
|
||||
// getIt<NavigationService>().showSnackBar(
|
||||
// 'Bloc error: ${error.toString()}',
|
||||
// );
|
||||
super.onError(bloc, error, stackTrace);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,13 @@ class ServerJobsState extends ServerInstallationDependendState {
|
|||
final String? migrationJobUid;
|
||||
|
||||
List<ServerJob> get serverJobList {
|
||||
final List<ServerJob> list = _serverJobList;
|
||||
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
||||
return list;
|
||||
try {
|
||||
final List<ServerJob> list = _serverJobList;
|
||||
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
||||
return list;
|
||||
} on UnsupportedError {
|
||||
return _serverJobList;
|
||||
}
|
||||
}
|
||||
|
||||
bool get hasRemovableJobs => serverJobList.any(
|
||||
|
|
Loading…
Reference in a new issue