From 6e23083bbd593479af9c2bb171c52416a4f6477b Mon Sep 17 00:00:00 2001 From: Mike Oswell Date: Wed, 16 Dec 2015 12:32:56 -0800 Subject: [PATCH] Add the token to /v1/internal/ui/nodes. (issue #1071) --- ui/javascripts/app/routes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/javascripts/app/routes.js b/ui/javascripts/app/routes.js index bedf86705..1a2c4e03b 100644 --- a/ui/javascripts/app/routes.js +++ b/ui/javascripts/app/routes.js @@ -88,12 +88,14 @@ App.IndexRoute = App.BaseRoute.extend({ // functioning, as well as the per-dc requests. App.DcRoute = App.BaseRoute.extend({ model: function(params) { + var token = App.get('settings.token'); + // Return a promise hash to retreieve the // dcs and nodes used in the header return Ember.RSVP.hash({ dc: params.dc, dcs: Ember.$.getJSON('/v1/catalog/datacenters'), - nodes: Ember.$.getJSON(formatUrl('/v1/internal/ui/nodes', params.dc)).then(function(data) { + nodes: Ember.$.getJSON(formatUrl('/v1/internal/ui/nodes', params.dc, token)).then(function(data) { var objs = []; // Merge the nodes into a list and create objects out of them