Skip to content

Commit

Permalink
UI cleanup follow up from #3245. (#3251)
Browse files Browse the repository at this point in the history
* Removes unnecessary set for model component which will be null.

* Returns a 404 for a missing node, not a 200 with an empty response.

* Updates built-in web assets.
  • Loading branch information
slackpad authored Jul 10, 2017
1 parent c2c28d5 commit 7200b8c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 38 deletions.
64 changes: 32 additions & 32 deletions agent/bindata_assetfs.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions agent/ui_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ RPC:
info.Checks = make([]*structs.HealthCheck, 0)
}
return info, nil
} else {
resp.WriteHeader(http.StatusNotFound)
return nil, nil
}

return nil, nil
}

Expand Down
6 changes: 0 additions & 6 deletions ui/javascripts/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,6 @@ App.NodesShowRoute = App.BaseRoute.extend({
controller.set('content', models.node);
controller.set('sessions', models.sessions);
controller.set('tomography', models.tomography);
//
// Since we have 2 column layout, we need to also display the
// list of nodes on the left. Hence setting the attribute
// {{nodes}} on the controller.
//
controller.set('nodes', models.nodes);
}
});

Expand Down

0 comments on commit 7200b8c

Please sign in to comment.