Rename TOKEN_TYPES to USER_TOKEN_TYPES

This commit is contained in:
Arun Kumar Mohan 2019-06-18 00:01:54 -05:00
parent b6cc32b0e0
commit d5ff5410eb
2 changed files with 3 additions and 3 deletions

View file

@ -1,2 +1,2 @@
/* eslint-disable import/prefer-default-export */ /* eslint-disable import/prefer-default-export */
export const TOKEN_TYPES = ['author', 'assignee']; export const USER_TOKEN_TYPES = ['author', 'assignee'];

View file

@ -6,7 +6,7 @@ import DropdownUtils from '~/filtered_search/dropdown_utils';
import Flash from '~/flash'; import Flash from '~/flash';
import UsersCache from '~/lib/utils/users_cache'; import UsersCache from '~/lib/utils/users_cache';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { TOKEN_TYPES } from 'ee_else_ce/filtered_search/constants'; import { USER_TOKEN_TYPES } from 'ee_else_ce/filtered_search/constants';
export default class VisualTokenValue { export default class VisualTokenValue {
constructor(tokenValue, tokenType) { constructor(tokenValue, tokenType) {
@ -23,7 +23,7 @@ export default class VisualTokenValue {
if (tokenType === 'label') { if (tokenType === 'label') {
this.updateLabelTokenColor(tokenValueContainer); this.updateLabelTokenColor(tokenValueContainer);
} else if (TOKEN_TYPES.includes(tokenType)) { } else if (USER_TOKEN_TYPES.includes(tokenType)) {
this.updateUserTokenAppearance(tokenValueContainer, tokenValueElement); this.updateUserTokenAppearance(tokenValueContainer, tokenValueElement);
} else if (tokenType === 'my-reaction') { } else if (tokenType === 'my-reaction') {
this.updateEmojiTokenAppearance(tokenValueContainer, tokenValueElement); this.updateEmojiTokenAppearance(tokenValueContainer, tokenValueElement);