Removed workaround with invalid role_ids. Improved code layout.
This commit is contained in:
parent
54f6c456b7
commit
ab83b577ba
1 changed files with 21 additions and 26 deletions
|
@ -58,7 +58,6 @@ class Index extends App.WizardFullScreen
|
|||
|
||||
App.Config.set( 'getting_started', Index, 'Routes' )
|
||||
|
||||
|
||||
class AutoWizard extends App.WizardFullScreen
|
||||
constructor: ->
|
||||
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/:token', AutoWizard, 'Routes')
|
||||
|
||||
|
||||
class Admin extends App.WizardFullScreen
|
||||
events:
|
||||
'submit form': 'submit'
|
||||
|
@ -192,7 +190,7 @@ class Admin extends App.WizardFullScreen
|
|||
e.preventDefault()
|
||||
@formDisable(e)
|
||||
@params = @formParam(e.target)
|
||||
@params.role_ids = [0]
|
||||
@params.role_ids = []
|
||||
|
||||
user = new App.User
|
||||
user.load(@params)
|
||||
|
@ -241,7 +239,6 @@ class Admin extends App.WizardFullScreen
|
|||
|
||||
App.Config.set('getting_started/admin', Admin, 'Routes')
|
||||
|
||||
|
||||
class Base extends App.WizardFullScreen
|
||||
elements:
|
||||
'.logo-preview': 'logoPreview'
|
||||
|
@ -377,7 +374,6 @@ class Base extends App.WizardFullScreen
|
|||
|
||||
App.Config.set('getting_started/base', Base, 'Routes')
|
||||
|
||||
|
||||
class EmailNotification extends App.WizardFullScreen
|
||||
events:
|
||||
'change .js-outbound [name=adapter]': 'toggleOutboundAdapter'
|
||||
|
@ -497,7 +493,6 @@ class EmailNotification extends App.WizardFullScreen
|
|||
|
||||
App.Config.set('getting_started/email_notification', EmailNotification, 'Routes')
|
||||
|
||||
|
||||
class Channel extends App.WizardFullScreen
|
||||
constructor: ->
|
||||
super
|
||||
|
@ -937,7 +932,7 @@ class Agent extends App.WizardFullScreen
|
|||
e.preventDefault()
|
||||
@formDisable(e)
|
||||
@params = @formParam(e.target)
|
||||
@params.role_ids = [0]
|
||||
@params.role_ids = []
|
||||
|
||||
# set invite flag
|
||||
@params.invite = true
|
||||
|
|
Loading…
Reference in a new issue