codecombat/app/views/core/CreateAccountModal/SingleSignOnConfirmView.coffee

31 lines
803 B
CoffeeScript
Raw Normal View History

2016-06-30 18:32:58 -04:00
CocoView = require 'views/core/CocoView'
2016-06-07 17:51:41 -04:00
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'
}
2016-06-30 18:32:58 -04:00
initialize: ({ @signupState } = {}) ->
2016-06-07 17:51:41 -04:00
super(arguments...)
onClickBackButton: ->
2016-06-30 18:32:58 -04:00
@signupState.set {
2016-06-07 17:51:41 -04:00
ssoUsed: undefined
ssoAttrs: undefined
}
@trigger 'nav-back'
formSchema: ->
type: 'object'
properties:
name: User.schema.properties.name
required: ['name']