summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/performance_bar/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/performance_bar/constants.js')
-rw-r--r--app/assets/javascripts/performance_bar/constants.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/javascripts/performance_bar/constants.js b/app/assets/javascripts/performance_bar/constants.js
new file mode 100644
index 00000000000..9659383edd9
--- /dev/null
+++ b/app/assets/javascripts/performance_bar/constants.js
@@ -0,0 +1,17 @@
+import { s__ } from '~/locale';
+
+export const sortOrders = {
+ DURATION: 'duration',
+ CHRONOLOGICAL: 'chronological',
+};
+
+export const sortOrderOptions = [
+ {
+ value: sortOrders.DURATION,
+ text: s__('PerformanceBar|Sort by duration'),
+ },
+ {
+ value: sortOrders.CHRONOLOGICAL,
+ text: s__('PerformanceBar|Sort chronologically'),
+ },
+];