Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Vargas <jvargas@gitlab.com>2019-04-02 23:02:29 +0300
committerJose Vargas <jvargas@gitlab.com>2019-04-04 23:53:03 +0300
commita6f9f79b73ec1893e00a41ae20c3e17bd33cccb4 (patch)
tree24f0196e2e546c3a711cfe4c8247883ad7338c48 /app/assets/javascripts/monitoring/utils.js
parent217e9e4db1a81125a06830b9dbf270a15fb9c284 (diff)
Changed the feature flag usage
In order for the dashboard component not to fail, the feature flag is now required by default
Diffstat (limited to 'app/assets/javascripts/monitoring/utils.js')
-rw-r--r--app/assets/javascripts/monitoring/utils.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/monitoring/utils.js b/app/assets/javascripts/monitoring/utils.js
index c3e854c5367..b01bee66d9e 100644
--- a/app/assets/javascripts/monitoring/utils.js
+++ b/app/assets/javascripts/monitoring/utils.js
@@ -1,13 +1,11 @@
import { timeWindows, msPerMinute } from './constants';
-export const getTimeDifferenceMinutes = timeWindow => {
+const getTimeDifferenceMinutes = timeWindow => {
switch (timeWindow) {
case timeWindows.thirtyMinutes:
return 30;
case timeWindows.threeHours:
return 60 * 3;
- case timeWindows.eightHours:
- return 60 * 8;
case timeWindows.oneDay:
return 60 * 24 * 1;
case timeWindows.threeDays: