mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Clear username and password when detached
This commit is contained in:
@@ -93,12 +93,16 @@ class SignInView extends ScrollView
|
||||
@signIn.enable()
|
||||
@password.focus()
|
||||
|
||||
detach: ->
|
||||
@username.setText('')
|
||||
@username.updateDisplay()
|
||||
@password.setText('')
|
||||
@password.updateDisplay()
|
||||
|
||||
super
|
||||
|
||||
attach: ->
|
||||
if @signedInUser?
|
||||
@username.val(@signedInUser)
|
||||
else
|
||||
@username.val('')
|
||||
@password.val('')
|
||||
@username.setText(@signedInUser) if @signedInUser?
|
||||
@username.enable()
|
||||
@password.enable()
|
||||
@alert.hide()
|
||||
|
||||
Reference in New Issue
Block a user