Skip to content

Commit

Permalink
fixup statscontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Apr 18, 2018
1 parent 5f25f1a commit 717d3b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions public/js/controllers/StatsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,

/*
Chart types:
etc_hashrate: ETC Hashrate Growth
hashrate: Hashrate Growth
miner_hashrate: Miner Hashrate Distribution
*/

const CHART_TYPES = {
"etc_hashrate": {
"title": "ETC Hashrate Growth"
"hashrate": {
"title": "Hashrate Growth"
},
"miner_hashrate": {
"title": "Miner Hashrate Distribution"
Expand Down
2 changes: 1 addition & 1 deletion public/tpl/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<div class="col-md-12">
<ul class="mega-menu-submenu">
<li>
<a href="/stats/etc_hashrate">
<a href="/stats/hashrate">
<i class="fa fa-line-chart"></i> HashRate Growth Chart </a>
</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion public/views/stats/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="portlet light">
<div class="portlet-body">
<miners-hashrate ng-if="chart == 'miner_hashrate'"></miners-hashrate>
<network-hashrate ng-if="chart == 'etc_hashrate'"></network-hashrate>
<network-hashrate ng-if="chart == 'hashrate'"></network-hashrate>
<etc-the-bomb-chart ng-if="chart == 'The_bomb_chart'"></etc-the-bomb-chart>
</div>
</div>
Expand Down

0 comments on commit 717d3b4

Please sign in to comment.