Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
879a8fea
Commit
879a8fea
authored
Jun 16, 2021
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide preloaded token values while searching
Hides preloaded token values within BaseToken while search is active.
parent
449a63ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/assets/javascripts/vue_shared/components/filtered_search_bar/tokens/base_token.vue
...ared/components/filtered_search_bar/tokens/base_token.vue
+1
-1
spec/frontend/vue_shared/components/filtered_search_bar/tokens/author_token_spec.js
...omponents/filtered_search_bar/tokens/author_token_spec.js
+8
-0
No files found.
app/assets/javascripts/vue_shared/components/filtered_search_bar/tokens/base_token.vue
View file @
879a8fea
...
...
@@ -184,7 +184,7 @@ export default {
<gl-dropdown-divider
/>
</
template
>
<slot
v-if=
"preloadedTokenValues.length"
v-if=
"preloadedTokenValues.length
&& !searchKey
"
name=
"token-values-list"
:token-values=
"preloadedTokenValues"
></slot>
...
...
spec/frontend/vue_shared/components/filtered_search_bar/tokens/author_token_spec.js
View file @
879a8fea
...
...
@@ -290,6 +290,14 @@ describe('AuthorToken', () => {
expect
(
firstSuggestion
).
toContain
(
'
Administrator
'
);
expect
(
firstSuggestion
).
toContain
(
'
@root
'
);
});
it
(
'
does not show current user while searching
'
,
async
()
=>
{
wrapper
.
findComponent
(
BaseToken
).
vm
.
handleInput
({
data
:
'
foo
'
});
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
findComponent
(
GlFilteredSearchSuggestion
).
exists
()).
toBe
(
false
);
});
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment