mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-25 18:26:36 +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;
|
final List<Backup> list = _backupList;
|
||||||
list.sort((final a, final b) => b.time.compareTo(a.time));
|
list.sort((final a, final b) => b.time.compareTo(a.time));
|
||||||
return list;
|
return list;
|
||||||
} on UnsupportedError {
|
} catch (_) {
|
||||||
return _backupList;
|
return _backupList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -419,30 +419,7 @@ class BackupDetailsPage extends StatelessWidget {
|
||||||
.read<BackupsBloc>()
|
.read<BackupsBloc>()
|
||||||
.add(const ForceSnapshotListUpdate()),
|
.add(const ForceSnapshotListUpdate()),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
// TODO: Return reupload key button in some form
|
||||||
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(),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue