mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-11 10:29:39 +00:00
chore: Fixes from review
This commit is contained in:
parent
160e6d3b35
commit
275e8b1f40
|
@ -131,7 +131,7 @@ class BackupsInitialized extends BackupsState {
|
|||
final List<Backup> list = _backupList;
|
||||
list.sort((final a, final b) => b.time.compareTo(a.time));
|
||||
return list;
|
||||
} on UnsupportedError {
|
||||
} catch (_) {
|
||||
return _backupList;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -419,30 +419,7 @@ class BackupDetailsPage extends StatelessWidget {
|
|||
.read<BackupsBloc>()
|
||||
.add(const ForceSnapshotListUpdate()),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const Divider(),
|
||||
const SizedBox(height: 8),
|
||||
ListTile(
|
||||
title: Text(
|
||||
'backup.reupload_key'.tr(),
|
||||
style: TextStyle(
|
||||
color: overrideColor,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
'backup.reupload_key_subtitle'.tr(),
|
||||
style: TextStyle(
|
||||
color: overrideColor,
|
||||
),
|
||||
),
|
||||
leading: Icon(
|
||||
Icons.warning_amber_outlined,
|
||||
color: overrideColor,
|
||||
),
|
||||
// onTap: preventActions
|
||||
// ? null
|
||||
// : () => context.read<BackupsCubit>().reuploadKey(),
|
||||
),
|
||||
// TODO: Return reupload key button in some form
|
||||
],
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue