mirror of https://github.com/status-im/consul.git
* 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.
This commit is contained in:
parent
c2c28d5f65
commit
7200b8cda8
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue