mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-10 01:49:41 +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: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 {
|
class SimpleBlocObserver extends BlocObserver {
|
||||||
SimpleBlocObserver();
|
SimpleBlocObserver();
|
||||||
|
@ -11,9 +11,9 @@ class SimpleBlocObserver extends BlocObserver {
|
||||||
final Object error,
|
final Object error,
|
||||||
final StackTrace stackTrace,
|
final StackTrace stackTrace,
|
||||||
) {
|
) {
|
||||||
getIt<NavigationService>().showSnackBar(
|
// getIt<NavigationService>().showSnackBar(
|
||||||
'Bloc error: ${error.toString()}',
|
// 'Bloc error: ${error.toString()}',
|
||||||
);
|
// );
|
||||||
super.onError(bloc, error, stackTrace);
|
super.onError(bloc, error, stackTrace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,13 @@ class ServerJobsState extends ServerInstallationDependendState {
|
||||||
final String? migrationJobUid;
|
final String? migrationJobUid;
|
||||||
|
|
||||||
List<ServerJob> get serverJobList {
|
List<ServerJob> get serverJobList {
|
||||||
final List<ServerJob> list = _serverJobList;
|
try {
|
||||||
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
final List<ServerJob> list = _serverJobList;
|
||||||
return list;
|
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
||||||
|
return list;
|
||||||
|
} on UnsupportedError {
|
||||||
|
return _serverJobList;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool get hasRemovableJobs => serverJobList.any(
|
bool get hasRemovableJobs => serverJobList.any(
|
||||||
|
|
Loading…
Reference in a new issue