|
@@ -37,6 +37,8 @@ class KMMemberCenterWindowController: NSWindowController {
|
|
|
@IBOutlet weak var cancelButton: NSButton!
|
|
|
@IBOutlet weak var loginButton: NSButton!
|
|
|
|
|
|
+ var signUpViewModel:KMSignUpViewModel?
|
|
|
+
|
|
|
static let shared: KMMemberCenterWindowController = {
|
|
|
let windowC = KMMemberCenterWindowController(windowNibName: "KMMemberCenterWindowController")
|
|
|
return windowC
|
|
@@ -207,9 +209,11 @@ class KMMemberCenterWindowController: NSWindowController {
|
|
|
}
|
|
|
|
|
|
@IBAction func buttonItemClicked_Login(_ sender: NSButton) {
|
|
|
- window?.close()
|
|
|
-
|
|
|
- KMLoginWindowsController.shared.showWindow(nil)
|
|
|
+ window?.showWaitingView()
|
|
|
+ signUpViewModel?.signUpAction { [weak self] result, _ in
|
|
|
+ self?.window?.hideWaitingView()
|
|
|
+ self?.window?.close()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|