Compare commits
4 Commits
8a757a70ea
...
f603fe4e0f
Author | SHA1 | Date |
---|---|---|
NaiJi ✨ | f603fe4e0f | |
NaiJi | 0de6afd2d1 | |
NaiJi ✨ | ffdb9d92fb | |
NaiJi | 1c42598787 |
|
@ -38,8 +38,14 @@ class BackupDetailsPage extends StatelessWidget {
|
|||
: StateType.uninitialized;
|
||||
final bool preventActions = backupsState.preventActions;
|
||||
final List<Backup> backups = backupsState.backups;
|
||||
final List<Service> services =
|
||||
context.watch<ServicesBloc>().state.servicesThatCanBeBackedUp;
|
||||
final List<Service> services = context
|
||||
.watch<ServicesBloc>()
|
||||
.state
|
||||
.servicesThatCanBeBackedUp
|
||||
.where(
|
||||
(final service) => service.isEnabled,
|
||||
)
|
||||
.toList();
|
||||
final Duration? autobackupPeriod = backupsState.autobackupPeriod;
|
||||
final List<ServerJob> backupJobs = context
|
||||
.watch<ServerJobsBloc>()
|
||||
|
|
|
@ -122,9 +122,6 @@ class _CreateBackupsModalState extends State<CreateBackupsModal> {
|
|||
),
|
||||
),
|
||||
);
|
||||
descriptionWidgets.add(
|
||||
const SizedBox(height: 4),
|
||||
);
|
||||
descriptionWidgets.add(
|
||||
Text(service.backupDescription),
|
||||
);
|
||||
|
@ -148,7 +145,10 @@ class _CreateBackupsModalState extends State<CreateBackupsModal> {
|
|||
title: Text(
|
||||
service.displayName,
|
||||
),
|
||||
subtitle: Column(children: descriptionWidgets),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: descriptionWidgets,
|
||||
),
|
||||
secondary: SvgPicture.string(
|
||||
service.svgIcon,
|
||||
height: 24,
|
||||
|
|
Loading…
Reference in New Issue