mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
31 lines
845 B
CoffeeScript
31 lines
845 B
CoffeeScript
ModalView = require 'views/core/ModalView'
|
|
BasicInfoView = require 'views/core/CreateAccountModal/BasicInfoView'
|
|
template = require 'templates/core/create-account-modal/single-sign-on-confirm-view'
|
|
forms = require 'core/forms'
|
|
User = require 'models/User'
|
|
|
|
module.exports = class SingleSignOnConfirmView extends BasicInfoView
|
|
id: 'single-sign-on-confirm-view'
|
|
template: template
|
|
|
|
events: _.extend {}, BasicInfoView.prototype.events, {
|
|
'click .back-button': 'onClickBackButton'
|
|
}
|
|
|
|
initialize: ({ @sharedState } = {}) ->
|
|
super(arguments...)
|
|
|
|
onClickBackButton: ->
|
|
@sharedState.set {
|
|
ssoUsed: undefined
|
|
ssoAttrs: undefined
|
|
}
|
|
console.log @sharedState.attributes
|
|
@trigger 'nav-back'
|
|
|
|
|
|
formSchema: ->
|
|
type: 'object'
|
|
properties:
|
|
name: User.schema.properties.name
|
|
required: ['name']
|