summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/boards/constants.js')
-rw-r--r--app/assets/javascripts/boards/constants.js27
1 files changed, 14 insertions, 13 deletions
diff --git a/app/assets/javascripts/boards/constants.js b/app/assets/javascripts/boards/constants.js
index d88774d11c1..80a8fc99895 100644
--- a/app/assets/javascripts/boards/constants.js
+++ b/app/assets/javascripts/boards/constants.js
@@ -9,17 +9,6 @@ import updateBoardListMutation from './graphql/board_list_update.mutation.graphq
import issueSetSubscriptionMutation from './graphql/issue_set_subscription.mutation.graphql';
import issueSetTitleMutation from './graphql/issue_set_title.mutation.graphql';
-export const SupportedFilters = [
- 'assigneeUsername',
- 'authorUsername',
- 'labelName',
- 'milestoneTitle',
- 'releaseTag',
- 'search',
- 'myReactionEmoji',
- 'assigneeId',
-];
-
/* eslint-disable-next-line @gitlab/require-i18n-strings */
export const AssigneeIdParamValues = ['Any', 'None'];
@@ -47,6 +36,7 @@ export const ListTypeTitles = {
milestone: __('Milestone'),
iteration: __('Iteration'),
label: __('Label'),
+ backlog: __('Open'),
};
export const formType = {
@@ -60,8 +50,6 @@ export const inactiveId = 0;
export const ISSUABLE = 'issuable';
export const LIST = 'list';
-export const NOT_FILTER = 'not[';
-
export const flashAnimationDuration = 2000;
export const listsQuery = {
@@ -106,6 +94,19 @@ export const subscriptionQueries = {
},
};
+export const FilterFields = {
+ [issuableTypes.issue]: [
+ 'assigneeUsername',
+ 'assigneeWildcardId',
+ 'authorUsername',
+ 'labelName',
+ 'milestoneTitle',
+ 'myReactionEmoji',
+ 'releaseTag',
+ 'search',
+ ],
+};
+
export default {
BoardType,
ListType,