summaryrefslogtreecommitdiff
path: root/widgets/benchmarks/benchmarks.coffee
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-10-17 20:14:46 -0200
committerdrebs <drebs@riseup.net>2017-10-17 20:14:46 -0200
commit1c5a8c3daf841912e636e99e9626835613731f4c (patch)
treeee7b308b960bdbb0a79f80757fb3c379303792b3 /widgets/benchmarks/benchmarks.coffee
parent9af4268d9970a60625aae3b494ea2443f0d1d450 (diff)
Add colors to benchmarks status.HEADmaster
Diffstat (limited to 'widgets/benchmarks/benchmarks.coffee')
-rw-r--r--widgets/benchmarks/benchmarks.coffee6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/benchmarks/benchmarks.coffee b/widgets/benchmarks/benchmarks.coffee
index 1d47b7c..2e1a6ba 100644
--- a/widgets/benchmarks/benchmarks.coffee
+++ b/widgets/benchmarks/benchmarks.coffee
@@ -13,3 +13,9 @@ class Dashing.Benchmarks extends Dashing.Widget
@accessor 'hasGoodOutliers', ->
@get('good') > 0
+
+ @accessor 'isBenchmarked', ->
+ !/NOT/.test(@get('is-benchmarked-status'))
+
+ @accessor 'isNotBenchmarked', ->
+ /NOT/.test(@get('is-benchmarked-status'))