summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-dashboard/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-dashboard/htdocs')
-rw-r--r--modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js b/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js
index e1ea347d59..c43e2ca544 100644
--- a/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js
+++ b/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js
@@ -146,6 +146,8 @@ return baseclass.extend({
var ifc = data[i];
if (v6) {
+ var uptime = ifc.getUptime();
+ this.params.internet.v6.uptime.value = (uptime > 0) ? '%t'.format(uptime) : '-';
this.params.internet.v6.ipprefixv6.value = ifc.getIP6Prefix() || '-';
this.params.internet.v6.gatewayv6.value = ifc.getGateway6Addr() || '-';
this.params.internet.v6.protocol.value= ifc.getI18n() || E('em', _('Not connected'));
@@ -178,7 +180,7 @@ return baseclass.extend({
},
uptime: {
- title: _('Connected since'),
+ title: _('Uptime'),
visible: true,
value: '-'
},
@@ -218,7 +220,7 @@ return baseclass.extend({
},
uptime: {
- title: _('Connected since'),
+ title: _('Uptime'),
visible: true,
value: '-'
},