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