All files / ee/app/assets/javascripts/epics_list constants.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50    2x                                                                                     2x        
import { __ } from '~/locale';
 
export const epicsSortOptions = [
  {
    id: 1,
    title: __('Created date'),
    sortDirection: {
      descending: 'CREATED_AT_DESC',
      ascending: 'CREATED_AT_ASC',
    },
  },
  {
    id: 2,
    title: __('Updated date'),
    sortDirection: {
      descending: 'UPDATED_AT_DESC',
      ascending: 'UPDATED_AT_ASC',
    },
  },
  {
    id: 3,
    title: __('Start date'),
    sortDirection: {
      descending: 'start_date_desc',
      ascending: 'start_date_asc',
    },
  },
  {
    id: 4,
    title: __('Due date'),
    sortDirection: {
      descending: 'end_date_desc',
      ascending: 'end_date_asc',
    },
  },
  {
    id: 5,
    title: __('Title'),
    sortDirection: {
      descending: 'TITLE_DESC',
      ascending: 'TITLE_ASC',
    },
  },
];
 
export const filterStateEmptyMessage = {
  opened: __('There are no open epics'),
  closed: __('There are no closed epics'),
};