Changeset - 16e0af42613f
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 8 years ago 2017-06-10 23:35:16
drewp@bigasterisk.com
collector web client show call count in status display
Ignore-this: b452b23ed91efb4ebf53c1bfacb9a33e
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/light9-collector-client.html
Show inline comments
 
@@ -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();
 
       }
 
   });
0 comments (0 inline, 0 general)