refactor: Rename isTherePendingChange to isVolumePicked on migration page
parent
2279ebf47f
commit
e4c5220fb4
|
@ -55,7 +55,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
bool get isTherePendingChange {
|
bool get isVolumePicked {
|
||||||
bool isChangeFound = false;
|
bool isChangeFound = false;
|
||||||
for (final Service service in widget.services) {
|
for (final Service service in widget.services) {
|
||||||
for (final String serviceId in serviceToDisk.keys) {
|
for (final String serviceId in serviceToDisk.keys) {
|
||||||
|
@ -171,8 +171,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
if (widget.isMigration ||
|
if (widget.isMigration || (!widget.isMigration && isVolumePicked))
|
||||||
(!widget.isMigration && isTherePendingChange))
|
|
||||||
BrandButton.filled(
|
BrandButton.filled(
|
||||||
child: Text('storage.start_migration_button'.tr()),
|
child: Text('storage.start_migration_button'.tr()),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
Loading…
Reference in New Issue