|
@@ -83,10 +83,11 @@ class KMForgotPasswordView: KMBaseXibView {
|
|
|
emailErrorLabel.isHidden = !viewModel.emailError()
|
|
|
}
|
|
|
|
|
|
- private func skipSignUpView() -> Void {
|
|
|
+ private func skipSignUpView(sendCode: Bool) -> Void {
|
|
|
guard let parentView = self.superview else { return }
|
|
|
if parentView is NSBox {
|
|
|
let model = KMSignUpViewModel()
|
|
|
+ model.sendCode = sendCode
|
|
|
model.email = viewModel.email
|
|
|
let signUpView = KMSignUpView(model: model, superView: parentView)
|
|
|
NSAnimationContext.runAnimationGroup { context in
|
|
@@ -194,7 +195,7 @@ class KMForgotPasswordView: KMBaseXibView {
|
|
|
alert.addButton(withTitle: "OK")
|
|
|
let response = alert.runModal()
|
|
|
if response == .alertFirstButtonReturn {
|
|
|
- self.skipSignUpView()
|
|
|
+ self.skipSignUpView(sendCode: true)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -202,7 +203,7 @@ class KMForgotPasswordView: KMBaseXibView {
|
|
|
}
|
|
|
|
|
|
@IBAction func backButtonAction(_ sender: NSButton) {
|
|
|
- skipSignUpView()
|
|
|
+ skipSignUpView(sendCode: false)
|
|
|
}
|
|
|
}
|
|
|
|