{{ name }}
-
{{ countdown(devices[name].info.last_seen) }}
+
{{ countdownVal }}
@@ -1485,6 +1497,7 @@
clock: '',
ws: null,
refreshing: true,
+ refreshInterval: 30,
countdownVal: 30
}
},
@@ -1561,17 +1574,17 @@
return e && e.mining ? e.mining.country || '' : ''
},
ago: ago,
- showRefresh: function () {
- var self = this;
- self.refreshing = true;
- self.countdownVal = 30;
- setTimeout(function () {
- self.refreshing = false
- }, 600)
- },
- countdown: function (iso) {
- return this.countdownVal + 's'
- },
+ showRefresh: function () {
+ var self = this;
+ self.refreshing = true;
+ self.countdownVal = self.refreshInterval;
+ setTimeout(function () {
+ self.refreshing = false
+ }, 600)
+ },
+ countdown: function (iso) {
+ return this.countdownVal + 's'
+ },
toggleGpu: function (i) {
this.expandedGpu = i
},
@@ -1706,7 +1719,7 @@
if (self.authed && self.countdownVal > 0) {
self.countdownVal--;
if (self.countdownVal <= 0) {
- self.countdownVal = 30;
+ self.countdownVal = self.refreshInterval;
self.refreshing = true;
setTimeout(function () {
self.refreshing = false