Removed workaround with invalid role_ids. Improved code layout.

This commit is contained in:
Martin Edenhofer 2016-06-06 19:24:49 +02:00
parent 54f6c456b7
commit ab83b577ba

View file

@ -58,7 +58,6 @@ class Index extends App.WizardFullScreen
App.Config.set( 'getting_started', Index, 'Routes' ) App.Config.set( 'getting_started', Index, 'Routes' )
class AutoWizard extends App.WizardFullScreen class AutoWizard extends App.WizardFullScreen
constructor: -> constructor: ->
super super
@ -125,7 +124,6 @@ class AutoWizard extends App.WizardFullScreen
App.Config.set('getting_started/auto_wizard', AutoWizard, 'Routes') App.Config.set('getting_started/auto_wizard', AutoWizard, 'Routes')
App.Config.set('getting_started/auto_wizard/:token', AutoWizard, 'Routes') App.Config.set('getting_started/auto_wizard/:token', AutoWizard, 'Routes')
class Admin extends App.WizardFullScreen class Admin extends App.WizardFullScreen
events: events:
'submit form': 'submit' 'submit form': 'submit'
@ -192,7 +190,7 @@ class Admin extends App.WizardFullScreen
e.preventDefault() e.preventDefault()
@formDisable(e) @formDisable(e)
@params = @formParam(e.target) @params = @formParam(e.target)
@params.role_ids = [0] @params.role_ids = []
user = new App.User user = new App.User
user.load(@params) user.load(@params)
@ -241,7 +239,6 @@ class Admin extends App.WizardFullScreen
App.Config.set('getting_started/admin', Admin, 'Routes') App.Config.set('getting_started/admin', Admin, 'Routes')
class Base extends App.WizardFullScreen class Base extends App.WizardFullScreen
elements: elements:
'.logo-preview': 'logoPreview' '.logo-preview': 'logoPreview'
@ -377,7 +374,6 @@ class Base extends App.WizardFullScreen
App.Config.set('getting_started/base', Base, 'Routes') App.Config.set('getting_started/base', Base, 'Routes')
class EmailNotification extends App.WizardFullScreen class EmailNotification extends App.WizardFullScreen
events: events:
'change .js-outbound [name=adapter]': 'toggleOutboundAdapter' 'change .js-outbound [name=adapter]': 'toggleOutboundAdapter'
@ -497,7 +493,6 @@ class EmailNotification extends App.WizardFullScreen
App.Config.set('getting_started/email_notification', EmailNotification, 'Routes') App.Config.set('getting_started/email_notification', EmailNotification, 'Routes')
class Channel extends App.WizardFullScreen class Channel extends App.WizardFullScreen
constructor: -> constructor: ->
super super
@ -937,7 +932,7 @@ class Agent extends App.WizardFullScreen
e.preventDefault() e.preventDefault()
@formDisable(e) @formDisable(e)
@params = @formParam(e.target) @params = @formParam(e.target)
@params.role_ids = [0] @params.role_ids = []
# set invite flag # set invite flag
@params.invite = true @params.invite = true