Browse Source

Cleanup onboarding.

pull/101/head
Abhishek 4 years ago
parent
commit
0c3d15b506
  1. 12
      Clocker/Onboarding/FinalOnboardingViewController.swift
  2. 2
      Clocker/Onboarding/OnboardingParentViewController.swift

12
Clocker/Onboarding/FinalOnboardingViewController.swift

@ -2,7 +2,6 @@
import Cocoa import Cocoa
import CoreLoggerKit import CoreLoggerKit
import Firebase
struct EmailSignupConstants { struct EmailSignupConstants {
static let CLEmailSignupEmailProperty = "email" static let CLEmailSignupEmailProperty = "email"
@ -119,17 +118,6 @@ class FinalOnboardingViewController: NSViewController {
EmailSignupConstants.CLAppLanguageKey: Locale.preferredLanguages.first ?? "en-US", EmailSignupConstants.CLAppLanguageKey: Locale.preferredLanguages.first ?? "en-US",
] ]
} }
func sendUpEmailIfValid() {
guard let identifier = serialNumber, let annotations = extraData() else {
// Either serial number wasn't present or email wasn't added. Abort.
return
}
let myRootReference = Firebase(url: "https://fiery-heat-5237.firebaseio.com/EmailSignup")
let feedbackReference = myRootReference?.child(byAppendingPath: identifier)
feedbackReference?.setValue(annotations)
}
} }
class EmailTextFieldValidator { class EmailTextFieldValidator {

2
Clocker/Onboarding/OnboardingParentViewController.swift

@ -216,8 +216,6 @@ class OnboardingParentViewController: NSViewController {
} }
func performFinalStepsBeforeFinishing() { func performFinalStepsBeforeFinishing() {
finalOnboardingVC?.sendUpEmailIfValid()
positiveButton.tag = OnboardingType.complete.rawValue positiveButton.tag = OnboardingType.complete.rawValue
// Install the menubar option! // Install the menubar option!

Loading…
Cancel
Save