summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/performance_bar
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-08-29 12:06:49 +0100
committerSean McGivern <sean@gitlab.com>2018-08-29 12:38:48 +0100
commit51f2588fdab8f52deab431d893f8fffc100cf9ee (patch)
tree30ff4267ca2a5d41949d47608f144b0c2b25ae9b /app/assets/javascripts/performance_bar
parent96904b0236329916666c829e9f569ac8b94d8879 (diff)
downloadgitlab-ce-51f2588fdab8f52deab431d893f8fffc100cf9ee.tar.gz
Warn to console, not flash, when performance bar fails
This isn't interesting most of the time and is may go over other flash banners.
Diffstat (limited to 'app/assets/javascripts/performance_bar')
-rw-r--r--app/assets/javascripts/performance_bar/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/performance_bar/index.js b/app/assets/javascripts/performance_bar/index.js
index 41880d27516..6e5ef0ac0b2 100644
--- a/app/assets/javascripts/performance_bar/index.js
+++ b/app/assets/javascripts/performance_bar/index.js
@@ -1,5 +1,4 @@
import Vue from 'vue';
-import Flash from '../flash';
import PerformanceBarService from './services/performance_bar_service';
import PerformanceBarStore from './stores/performance_bar_store';
@@ -46,7 +45,8 @@ export default ({ container }) =>
this.store.addRequestDetails(requestId, res.data.data);
})
.catch(() =>
- Flash(`Error getting performance bar results for ${requestId}`),
+ // eslint-disable-next-line no-console
+ console.warn(`Error getting performance bar results for ${requestId}`),
);
},
},