Make the analysis page more useful
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / commits-viewer.js
index f5d1a8c5dd864381e6aa14501ba6d62e0ecb419e..947c437a47c3108df12c054341c372f6c06819c7 100644 (file)
@@ -2,6 +2,7 @@ App.CommitsViewerComponent = Ember.Component.extend({
     repository: null,
     revisionInfo: null,
     commits: null,
+    visible: true,
     commitsChanged: function ()
     {
         var revisionInfo = this.get('revisionInfo');
@@ -30,4 +31,10 @@ App.CommitsViewerComponent = Ember.Component.extend({
                 self.set('commits', []);
         })
     }.observes('repository').observes('revisionInfo').on('init'),
+    actions: {
+        toggleVisibility: function ()
+        {
+            this.toggleProperty('visible');
+        }
+    }
 });