Add name attribute to adapter model
This commit is contained in:
@@ -2,6 +2,7 @@ import DS from 'ember-data'
|
|||||||
|
|
||||||
export default DS.Model.extend
|
export default DS.Model.extend
|
||||||
title: DS.attr('string')
|
title: DS.attr('string')
|
||||||
|
name: DS.attr('string')
|
||||||
url_name: DS.attr('string')
|
url_name: DS.attr('string')
|
||||||
authorizations: DS.attr(defaultValue: -> [])
|
authorizations: DS.attr(defaultValue: -> [])
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ export default Ember.Route.extend DunlopApplicationRoute,
|
|||||||
@load_backend_settings()
|
@load_backend_settings()
|
||||||
]).catch((reason) =>
|
]).catch((reason) =>
|
||||||
@get('initial_resources_reject')(reason)
|
@get('initial_resources_reject')(reason)
|
||||||
).then (results...) =>
|
).then (results) =>
|
||||||
@set 'router.globals.adapters', results[4] #.content ? this is a promise, could be an array @store.peekAll('panda/adapter')
|
@set 'router.globals.adapters', results[4].toArray()
|
||||||
@get('initial_resources_resolve')()
|
@get('initial_resources_resolve')()
|
||||||
|
|
||||||
load_backend_settings: ->
|
load_backend_settings: ->
|
||||||
|
|||||||
Reference in New Issue
Block a user