Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 7936596

Browse files
committed
Merge pull request #300 from appirio-tech/feature/tom-hide-graphs
hide graphs when no data is present
2 parents e3c8892 + 5c462d5 commit 7936596

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/profile/subtrack/data/data.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
| Sorry, no rated SRMs found.
5454

5555
.stats(ng-show="vm.viewing == 'stats' && profileVm.status.stats === 'ready'")
56-
.graphs()
56+
.graphs(ng-if="vm.history")
5757
distribution-graph(promise="vm.distributionPromise", rating="vm.typeStats.rank.rating", graph-state="vm.graphState")
5858

5959
history-graph(promise="vm.historyPromise", rating="vm.typeStats.rank.rating", graph-state="vm.graphState")

app/profile/subtrack/develop/develop.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
| Sorry, no successful challenges found.
5050

5151
.stats(ng-show="vm.viewing == 'stats' && profileVm.status.stats === 'ready'")
52-
.graphs
52+
.graphs(ng-if="vm.history")
5353
distribution-graph(promise="vm.distributionPromise", rating="vm.typeStats.rank.rating", graph-state="vm.graphState")
5454

5555
history-graph(promise="vm.historyPromise", rating="vm.typeStats.rank.rating", graph-state="vm.graphState")

0 commit comments

Comments
 (0)