mirror of https://gitee.com/bigwinds/arangodb
node info view
This commit is contained in:
parent
f61ff4e32a
commit
4ac5ca25f5
|
@ -56,11 +56,21 @@
|
|||
}
|
||||
|
||||
var renderObj = {};
|
||||
renderObj.Name = model.name;
|
||||
renderObj.Address = model.address;
|
||||
renderObj.Status = model.status;
|
||||
renderObj.Protocol = model.protocol;
|
||||
renderObj.Role = model.role;
|
||||
if (model.name) {
|
||||
renderObj.Name = model.name;
|
||||
}
|
||||
if (model.address) {
|
||||
renderObj.Address = model.address;
|
||||
}
|
||||
if (model.status) {
|
||||
renderObj.Status = model.status;
|
||||
}
|
||||
if (model.protocol) {
|
||||
renderObj.Protocol = model.protocol;
|
||||
}
|
||||
if (model.role) {
|
||||
renderObj.Role = model.role;
|
||||
}
|
||||
this.$el.html(this.template.render({entries: renderObj}));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue