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

51 lines
1,013 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;