Perf dashboard should have a way of marking outliers
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / app.js
index a711f8b89ce8a6551a9a126ef63d6a92d7d8dc01..8202a5d78e0dd2c3ea035e0465965c306303310b 100755 (executable)
@@ -1072,9 +1072,10 @@ App.PaneController = Ember.ObjectController.extend({
             return;
         var pane = this.get('model');
         selectedMeasurement.setMarkedOutlier(!!selectedItemIsMarkedOutlier).then(function () {
             return;
         var pane = this.get('model');
         selectedMeasurement.setMarkedOutlier(!!selectedItemIsMarkedOutlier).then(function () {
+            alert(selectedItemIsMarkedOutlier ? 'Marked the point as an outlier' : 'The point is no longer marked as an outlier');
             pane.refetchRuns();
         }, function (error) {
             pane.refetchRuns();
         }, function (error) {
-            alert(error);
+            alert('Failed to update the status:' + error);
         });
     }.observes('selectedItemIsMarkedOutlier'),
 });
         });
     }.observes('selectedItemIsMarkedOutlier'),
 });