amanda.hinchman-dominguez
11/30/2017, 8:04 PMamanda.hinchman-dominguez
11/30/2017, 8:05 PMedvin
11/30/2017, 8:06 PMedvin
11/30/2017, 8:07 PMedvin
11/30/2017, 8:07 PMamanda.hinchman-dominguez
11/30/2017, 8:08 PMedvin
11/30/2017, 8:08 PMamanda.hinchman-dominguez
11/30/2017, 8:09 PMamanda.hinchman-dominguez
11/30/2017, 8:09 PMamanda.hinchman-dominguez
11/30/2017, 8:11 PMamanda.hinchman-dominguez
11/30/2017, 8:11 PMedvin
11/30/2017, 8:11 PMedvin
11/30/2017, 8:16 PMedvin
11/30/2017, 8:16 PMedvin
11/30/2017, 8:16 PMedvin
11/30/2017, 8:17 PMedvin
11/30/2017, 8:17 PMedvin
11/30/2017, 8:17 PMedvin
11/30/2017, 8:17 PMimage.png▾
edvin
11/30/2017, 8:18 PMedvin
11/30/2017, 8:18 PMedvin
11/30/2017, 8:19 PMedvin
11/30/2017, 8:20 PMloginScreen.username.requestFocus()
in LoginController
, because that field will get focus whenever the view is shown again. Notice also that I don't create variables to the input fields, but for properties instead.edvin
11/30/2017, 8:21 PMshakeStage
btw, it's probably good :)amanda.hinchman-dominguez
11/30/2017, 8:22 PMamanda.hinchman-dominguez
11/30/2017, 8:22 PMfavetelinguis
11/30/2017, 8:22 PMedvin
11/30/2017, 8:22 PMrequestFocus
is only available on the Node, I'm calling it on the textfield here.edvin
11/30/2017, 8:23 PMuser.token.isBlank()
returns an observable boolean. What you're doing is fetching the Boolean value and turning it into an observable. That observable will never update.edvin
11/30/2017, 8:24 PMenableWhen(user.token.isBlank())
is all you need 🙂