refactor: Rename isTherePendingChange to isVolumePicked on migration page

This commit is contained in:
NaiJi 2023-08-11 10:21:27 -03:00
parent 2279ebf47f
commit e4c5220fb4

View file

@ -55,7 +55,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
});
}
bool get isTherePendingChange {
bool get isVolumePicked {
bool isChangeFound = false;
for (final Service service in widget.services) {
for (final String serviceId in serviceToDisk.keys) {
@ -171,8 +171,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
),
),
const SizedBox(height: 16),
if (widget.isMigration ||
(!widget.isMigration && isTherePendingChange))
if (widget.isMigration || (!widget.isMigration && isVolumePicked))
BrandButton.filled(
child: Text('storage.start_migration_button'.tr()),
onPressed: () {