Browse Source

web-ui: Humanize active seconds field on the masternodes view

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
d3523cd959
  1. 2
      web-ui/src/app/components/masternodes/masternodes.component.html
  2. 2
      web-ui/src/app/components/masternodes/masternodes.component.ts

2
web-ui/src/app/components/masternodes/masternodes.component.html

@ -24,7 +24,7 @@
<td>{{item.ip}}</td>
<td>{{item.protocol}}</td>
<td>{{item.status}}</td>
<td>{{item.activeSeconds}}</td>
<td>{{Math.max(item.activeSeconds, 0) | amDuration:'seconds'}}</td>
<td>{{item.lastSeen * 1000 | date:'MMMM d, y, h:mm:ss a'}}</td>
<td>
<a routerLink="/addresses/{{item.payee}}">{{item.payee}}</a>

2
web-ui/src/app/components/masternodes/masternodes.component.ts

@ -17,6 +17,8 @@ import { ErrorService } from '../../services/error.service';
})
export class MasternodesComponent implements OnInit {
Math: Math = Math;
// pagination
total = 0;
currentPage = 1;

Loading…
Cancel
Save