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
8f90148b
Commit
8f90148b
authored
Oct 20, 2020
by
Scott Stern
Committed by
Kushal Pandya
Oct 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add assignee multiselect for sidebar work
parent
87cc057a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
app/assets/javascripts/vue_shared/components/sidebar/assignees_dropdown.vue
...ipts/vue_shared/components/sidebar/assignees_dropdown.vue
+28
-0
changelogs/unreleased/ss-add-multiselect-wrapper.yml
changelogs/unreleased/ss-add-multiselect-wrapper.yml
+5
-0
spec/frontend/vue_shared/components/assignees_dropdown_spec.js
...frontend/vue_shared/components/assignees_dropdown_spec.js
+18
-0
No files found.
app/assets/javascripts/vue_shared/components/sidebar/assignees_dropdown.vue
0 → 100644
View file @
8f90148b
<
script
>
import
{
GlDropdown
,
GlDropdownForm
}
from
'
@gitlab/ui
'
;
export
default
{
components
:
{
GlDropdownForm
,
GlDropdown
,
},
props
:
{
headerText
:
{
type
:
String
,
required
:
true
,
},
text
:
{
type
:
String
,
required
:
true
,
},
},
};
</
script
>
<
template
>
<gl-dropdown
class=
"show"
:text=
"text"
:header-text=
"headerText"
>
<gl-dropdown-form>
<slot
name=
"items"
></slot>
</gl-dropdown-form>
</gl-dropdown>
</
template
>
changelogs/unreleased/ss-add-multiselect-wrapper.yml
0 → 100644
View file @
8f90148b
---
title
:
Add assignees multiselect wrapper
merge_request
:
44087
author
:
type
:
added
spec/frontend/vue_shared/components/assignees_dropdown_spec.js
0 → 100644
View file @
8f90148b
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
getByText
}
from
'
@testing-library/dom
'
;
import
AssigneesDropdown
from
'
~/vue_shared/components/sidebar/assignees_dropdown.vue
'
;
describe
(
'
AssigneesDropdown Component
'
,
()
=>
{
it
(
'
renders items slot
'
,
()
=>
{
const
wrapper
=
shallowMount
(
AssigneesDropdown
,
{
propsData
:
{
text
:
''
,
headerText
:
''
,
},
slots
:
{
items
:
'
<p>Test</p>
'
,
},
});
expect
(
getByText
(
wrapper
.
element
,
'
Test
'
)).
toBeDefined
();
});
});
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