client/skr/Extension.coffee in stockor-0.1.8 vs client/skr/Extension.coffee in stockor-0.1.9
- old
+ new
@@ -1,15 +1,14 @@
class Skr.Extension extends Lanes.Extensions.Base
identifier: "skr"
- # This method is called when the extension is registered
- # Not all of Lanes will be available yet
- onRegistered: ->
-
# Data that is provided by lib/skr/extension.rb's
# client_bootstrap_data method ends up here
- setBootstrapData: (data)->
- Skr.Models.GlAccount.initialize(data)
+ setBootstrapData: (data) ->
+ Skr.Models.GlAccount.initialize(
+ accounts: data.gl_accounts
+ default_ids: data.default_gl_account_ids,
+ )
- # All of lanes is loaded and it is in the process of booting
- onAvailable: ->
+ rootComponent: (viewport) ->
+ Lanes.Workspace.Layout