1.4.5.2
This commit is contained in:
16
EdgeAdmin/web/views/@default/db/node.js
Normal file
16
EdgeAdmin/web/views/@default/db/node.js
Normal file
@@ -0,0 +1,16 @@
|
||||
Tea.context(function () {
|
||||
this.$delay(function () {
|
||||
this.loadStatus(this.node.id)
|
||||
})
|
||||
|
||||
this.status = null
|
||||
this.loadStatus = function (nodeId) {
|
||||
this.$post(".status")
|
||||
.params({
|
||||
nodeId: nodeId
|
||||
})
|
||||
.success(function (resp) {
|
||||
this.status = resp.data.status
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user