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
b2c2a62e
Commit
b2c2a62e
authored
3 years ago
by
NataliaTepluhina
Committed by
Natalia Tepluhina
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear search field after label selection
parent
c4a14b1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/dropdown_contents.vue
...onents/sidebar/labels_select_widget/dropdown_contents.vue
+5
-0
app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/dropdown_contents_labels_view.vue
...ar/labels_select_widget/dropdown_contents_labels_view.vue
+1
-0
No files found.
app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/dropdown_contents.vue
View file @
b2c2a62e
...
@@ -172,6 +172,10 @@ export default {
...
@@ -172,6 +172,10 @@ export default {
showDropdown
()
{
showDropdown
()
{
this
.
$refs
.
dropdown
.
show
();
this
.
$refs
.
dropdown
.
show
();
},
},
clearSearch
()
{
this
.
searchKey
=
''
;
this
.
setFocus
();
},
},
},
};
};
</
script
>
</
script
>
...
@@ -210,6 +214,7 @@ export default {
...
@@ -210,6 +214,7 @@ export default {
:attr-workspace-path=
"attrWorkspacePath"
:attr-workspace-path=
"attrWorkspacePath"
:label-create-type=
"labelCreateType"
:label-create-type=
"labelCreateType"
@
hideCreateView=
"toggleDropdownContent"
@
hideCreateView=
"toggleDropdownContent"
@
selectLabel=
"clearSearch"
/>
/>
</
template
>
</
template
>
<
template
#footer
>
<
template
#footer
>
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/dropdown_contents_labels_view.vue
View file @
b2c2a62e
...
@@ -121,6 +121,7 @@ export default {
...
@@ -121,6 +121,7 @@ export default {
},
},
handleLabelClick
(
label
)
{
handleLabelClick
(
label
)
{
this
.
updateSelectedLabels
(
label
);
this
.
updateSelectedLabels
(
label
);
this
.
$emit
(
'
selectLabel
'
);
if
(
!
this
.
allowMultiselect
)
{
if
(
!
this
.
allowMultiselect
)
{
this
.
$emit
(
'
closeDropdown
'
,
this
.
localSelectedLabels
);
this
.
$emit
(
'
closeDropdown
'
,
this
.
localSelectedLabels
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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