gitlab-org--gitlab-foss/app/assets/javascripts/issuable_list/constants.js

52 lines
1013 B
JavaScript

import { __ } from '~/locale';
export const IssuableStates = {
Opened: 'opened',
Closed: 'closed',
All: 'all',
};
export const IssuableListTabs = [
{
id: 'state-opened',
name: IssuableStates.Opened,
title: __('Open'),
titleTooltip: __('Filter by issues that are currently opened.'),
},
{
id: 'state-closed',
name: IssuableStates.Closed,
title: __('Closed'),
titleTooltip: __('Filter by issues that are currently closed.'),
},
{
id: 'state-all',
name: IssuableStates.All,
title: __('All'),
titleTooltip: __('Show all issues.'),
},
];
export const AvailableSortOptions = [
{
id: 1,
title: __('Created date'),
sortDirection: {
descending: 'created_desc',
ascending: 'created_asc',
},
},
{
id: 2,
title: __('Last updated'),
sortDirection: {
descending: 'updated_desc',
ascending: 'updated_asc',
},
},
];
export const DEFAULT_PAGE_SIZE = 20;
export const DEFAULT_SKELETON_COUNT = 5;