Merge pull request #1422 from railsguru/master

Propagate token in UI
This commit is contained in:
James Phillips 2016-01-02 06:55:14 -08:00
commit 4248e7659c
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ App.DcRoute = App.BaseRoute.extend({
// Return a promise hash to retreieve the // Return a promise hash to retreieve the
// dcs and nodes used in the header // dcs and nodes used in the header
var token = App.get('settings.token');
return Ember.RSVP.hash({ return Ember.RSVP.hash({
dc: params.dc, dc: params.dc,
dcs: Ember.$.getJSON('/v1/catalog/datacenters'), dcs: Ember.$.getJSON('/v1/catalog/datacenters'),