Commit 0069ccc0 authored by Jose Blaya's avatar Jose Blaya
Browse files

Disable see all available plans while the spinner is loading

parent ba3cd1f5
......@@ -335,12 +335,14 @@ public class GetStartedViewController: PIAWelcomeViewController {
private func disableInteractions(fully: Bool) {
self.subscribeNowButton.isEnabled = false
self.buyButton.isEnabled = false
self.spinner.startAnimating()
}
private func enableInteractions() {
if !isPurchasing { //dont reenable the screen if we are still purchasing
self.subscribeNowButton.isEnabled = true
self.buyButton.isEnabled = true
self.spinner.stopAnimating()
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment