Mercurial > code > home > repos > light9
changeset 1659:16e0af42613f
collector web client show call count in status display
Ignore-this: b452b23ed91efb4ebf53c1bfacb9a33e
author | drewp@bigasterisk.com |
---|---|
date | Sat, 10 Jun 2017 23:35:16 +0000 |
parents | ae9f5ac1a48b |
children | 71ee518b18bf |
files | light9/web/light9-collector-client.html |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/light9-collector-client.html Sat Jun 10 23:32:27 2017 +0000 +++ b/light9/web/light9-collector-client.html Sat Jun 10 23:35:16 2017 +0000 @@ -4,7 +4,7 @@ <dom-module id="light9-collector-client"> <template> <iron-ajax url="/collector/attrs" method="PUT" id="put"></iron-ajax> - <span>{{status}}</span> + <span>{{status}} ([[sent]] sent)</span> </template> <script> Polymer({ @@ -12,7 +12,8 @@ properties: { status: {type: String, value: 'init'}, clientSession: {value: ""+Date.now()}, - self: {type: Object, notify: true} + self: {type: Object, notify: true}, + sent: {type: Number, value: 0}, }, ready: function() { this.self = this; @@ -40,6 +41,7 @@ "sendTime": Date.now() / 1000 }); this.$.put.generateRequest(); + this.sent += 1; this.lastSent = settings.slice(); } });