Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-09 18:07:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-09 18:07:50 +0300
commite38a99eb0725697297386dd0bb1045b1fd55493a (patch)
treee6298122cbb5418f59c140f4f9e303abdc0739b5 /app/assets/javascripts/boards
parent7c41737ae53e3a237f356480ae04ec3ba182447b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r--app/assets/javascripts/boards/components/board_filtered_search.vue2
-rw-r--r--app/assets/javascripts/boards/components/issue_board_filtered_search.vue42
2 files changed, 15 insertions, 29 deletions
diff --git a/app/assets/javascripts/boards/components/board_filtered_search.vue b/app/assets/javascripts/boards/components/board_filtered_search.vue
index 11a5d89cc8c..f6601898c99 100644
--- a/app/assets/javascripts/boards/components/board_filtered_search.vue
+++ b/app/assets/javascripts/boards/components/board_filtered_search.vue
@@ -17,8 +17,6 @@ import eventHub from '../eventhub';
export default {
i18n: {
search: __('Search'),
- label: __('Label'),
- author: __('Author'),
},
components: { FilteredSearch },
inject: ['initialFilterParams'],
diff --git a/app/assets/javascripts/boards/components/issue_board_filtered_search.vue b/app/assets/javascripts/boards/components/issue_board_filtered_search.vue
index bab6fe26978..84fb9a019a7 100644
--- a/app/assets/javascripts/boards/components/issue_board_filtered_search.vue
+++ b/app/assets/javascripts/boards/components/issue_board_filtered_search.vue
@@ -15,6 +15,13 @@ import {
TOKEN_TITLE_MY_REACTION,
OPERATOR_IS_AND_IS_NOT,
OPERATOR_IS_ONLY,
+ TOKEN_TITLE_AUTHOR,
+ TOKEN_TITLE_ASSIGNEE,
+ TOKEN_TITLE_CONFIDENTIAL,
+ TOKEN_TITLE_LABEL,
+ TOKEN_TITLE_MILESTONE,
+ TOKEN_TITLE_RELEASE,
+ TOKEN_TITLE_TYPE,
} from '~/vue_shared/components/filtered_search_bar/constants';
import AuthorToken from '~/vue_shared/components/filtered_search_bar/tokens/author_token.vue';
import EmojiToken from '~/vue_shared/components/filtered_search_bar/tokens/emoji_token.vue';
@@ -28,17 +35,8 @@ export default {
INCIDENT: 'INCIDENT',
},
i18n: {
- search: __('Search'),
- epic: __('Epic'),
- label: __('Label'),
- author: __('Author'),
- assignee: __('Assignee'),
- type: __('Type'),
incident: __('Incident'),
issue: __('Issue'),
- milestone: __('Milestone'),
- release: __('Release'),
- confidential: __('Confidential'),
},
components: { BoardFilteredSearch },
inject: ['isSignedIn', 'releasesFetchPath', 'fullPath', 'boardType'],
@@ -52,17 +50,7 @@ export default {
: this.fullPath.slice(0, this.fullPath.lastIndexOf('/'));
},
tokensCE() {
- const {
- label,
- author,
- assignee,
- issue,
- incident,
- type,
- milestone,
- release,
- confidential,
- } = this.$options.i18n;
+ const { issue, incident } = this.$options.i18n;
const { types } = this.$options;
const { fetchAuthors, fetchLabels } = issueBoardFilters(
this.$apollo,
@@ -73,7 +61,7 @@ export default {
const tokens = [
{
icon: 'user',
- title: assignee,
+ title: TOKEN_TITLE_ASSIGNEE,
type: 'assignee',
operators: OPERATOR_IS_AND_IS_NOT,
token: AuthorToken,
@@ -83,7 +71,7 @@ export default {
},
{
icon: 'pencil',
- title: author,
+ title: TOKEN_TITLE_AUTHOR,
type: 'author',
operators: OPERATOR_IS_AND_IS_NOT,
symbol: '@',
@@ -94,7 +82,7 @@ export default {
},
{
icon: 'labels',
- title: label,
+ title: TOKEN_TITLE_LABEL,
type: 'label',
operators: OPERATOR_IS_AND_IS_NOT,
token: LabelToken,
@@ -129,7 +117,7 @@ export default {
{
type: 'confidential',
icon: 'eye-slash',
- title: confidential,
+ title: TOKEN_TITLE_CONFIDENTIAL,
unique: true,
token: GlFilteredSearchToken,
operators: OPERATOR_IS_ONLY,
@@ -142,7 +130,7 @@ export default {
: []),
{
type: 'milestone',
- title: milestone,
+ title: TOKEN_TITLE_MILESTONE,
icon: 'clock',
symbol: '%',
token: MilestoneToken,
@@ -152,7 +140,7 @@ export default {
},
{
icon: 'issues',
- title: type,
+ title: TOKEN_TITLE_TYPE,
type: 'type',
token: GlFilteredSearchToken,
unique: true,
@@ -163,7 +151,7 @@ export default {
},
{
type: 'release',
- title: release,
+ title: TOKEN_TITLE_RELEASE,
icon: 'rocket',
token: ReleaseToken,
fetchReleases: (search) => {