dash: undo the temporary discardButtonEnabled test

This commit is contained in:
Andrei Vereha 2021-04-04 17:15:44 +02:00
parent 0c35eb7da9
commit 513007f6ae

View file

@ -117,7 +117,9 @@ class DashPodManagementActivity : NoSplashAppCompatActivity() {
// Only show the discard button to reset a cached unique ID before the unique ID has actually been set
// Otherwise, users should use the Deactivate Pod Wizard. In case proper deactivation fails,
// they will get an option to discard the Pod there
val discardButtonEnabled = true
val discardButtonEnabled =
podStateManager.uniqueId != null &&
podStateManager.activationProgress.isBefore(ActivationProgress.SET_UNIQUE_ID)
binding.buttonDiscardPod.visibility = discardButtonEnabled.toVisibility()
binding.buttonActivatePod.isEnabled = podStateManager.activationProgress.isBefore(ActivationProgress.COMPLETED)