mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
30 lines
803 B
CoffeeScript
30 lines
803 B
CoffeeScript
CocoView = require 'views/core/CocoView'
|
|
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: ({ @signupState } = {}) ->
|
|
super(arguments...)
|
|
|
|
onClickBackButton: ->
|
|
@signupState.set {
|
|
ssoUsed: undefined
|
|
ssoAttrs: undefined
|
|
}
|
|
@trigger 'nav-back'
|
|
|
|
|
|
formSchema: ->
|
|
type: 'object'
|
|
properties:
|
|
name: User.schema.properties.name
|
|
required: ['name']
|