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
127c4b5a
Commit
127c4b5a
authored
Aug 03, 2020
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remaining GlDropdown usage
parent
e6d9271c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
app/assets/javascripts/design_management_legacy/components/upload/design_version_dropdown.vue
...ment_legacy/components/upload/design_version_dropdown.vue
+7
-7
spec/frontend/design_management_legacy/components/upload/__snapshots__/design_version_dropdown_spec.js.snap
...upload/__snapshots__/design_version_dropdown_spec.js.snap
+12
-12
No files found.
app/assets/javascripts/design_management_legacy/components/upload/design_version_dropdown.vue
View file @
127c4b5a
<
script
>
import
{
GlD
ropdown
,
Gl
DropdownItem
}
from
'
@gitlab/ui
'
;
import
{
GlD
eprecatedDropdown
,
GlDeprecated
DropdownItem
}
from
'
@gitlab/ui
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
allVersionsMixin
from
'
../../mixins/all_versions
'
;
import
{
findVersionId
}
from
'
../../utils/design_management_utils
'
;
export
default
{
components
:
{
GlDropdown
,
GlDropdownItem
,
GlD
eprecatedD
ropdown
,
GlD
eprecatedD
ropdownItem
,
},
mixins
:
[
allVersionsMixin
],
computed
:
{
...
...
@@ -50,8 +50,8 @@ export default {
</
script
>
<
template
>
<gl-dropdown
:text=
"dropdownText"
variant=
"link"
class=
"design-version-dropdown"
>
<gl-dropdown-item
v-for=
"(version, index) in allVersions"
:key=
"version.node.id"
>
<gl-d
eprecated-d
ropdown
:text=
"dropdownText"
variant=
"link"
class=
"design-version-dropdown"
>
<gl-d
eprecated-d
ropdown-item
v-for=
"(version, index) in allVersions"
:key=
"version.node.id"
>
<router-link
class=
"d-flex js-version-link"
:to=
"
{ path: $route.path, query: { version: findVersionId(version.node.id) } }"
...
...
@@ -71,6 +71,6 @@ export default {
class=
"fa fa-check float-right gl-mr-2"
></i>
</router-link>
</gl-dropdown-item>
</gl-dropdown>
</gl-d
eprecated-d
ropdown-item>
</gl-d
eprecated-d
ropdown>
</
template
>
spec/frontend/design_management_legacy/components/upload/__snapshots__/design_version_dropdown_spec.js.snap
View file @
127c4b5a
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Design management design version dropdown component renders design version dropdown button 1`] = `
<gl-dropdown-stub
<gl-d
eprecated-d
ropdown-stub
class="design-version-dropdown"
issueiid=""
projectpath=""
text="Showing Latest Version"
variant="link"
>
<gl-dropdown-item-stub>
<gl-d
eprecated-d
ropdown-item-stub>
<router-link-stub
class="d-flex js-version-link"
to="[object Object]"
...
...
@@ -31,8 +31,8 @@ exports[`Design management design version dropdown component renders design vers
class="fa fa-check float-right gl-mr-2"
/>
</router-link-stub>
</gl-dropdown-item-stub>
<gl-dropdown-item-stub>
</gl-d
eprecated-d
ropdown-item-stub>
<gl-d
eprecated-d
ropdown-item-stub>
<router-link-stub
class="d-flex js-version-link"
to="[object Object]"
...
...
@@ -51,19 +51,19 @@ exports[`Design management design version dropdown component renders design vers
<!---->
</router-link-stub>
</gl-dropdown-item-stub>
</gl-dropdown-stub>
</gl-d
eprecated-d
ropdown-item-stub>
</gl-d
eprecated-d
ropdown-stub>
`;
exports[`Design management design version dropdown component renders design version list 1`] = `
<gl-dropdown-stub
<gl-d
eprecated-d
ropdown-stub
class="design-version-dropdown"
issueiid=""
projectpath=""
text="Showing Latest Version"
variant="link"
>
<gl-dropdown-item-stub>
<gl-d
eprecated-d
ropdown-item-stub>
<router-link-stub
class="d-flex js-version-link"
to="[object Object]"
...
...
@@ -86,8 +86,8 @@ exports[`Design management design version dropdown component renders design vers
class="fa fa-check float-right gl-mr-2"
/>
</router-link-stub>
</gl-dropdown-item-stub>
<gl-dropdown-item-stub>
</gl-d
eprecated-d
ropdown-item-stub>
<gl-d
eprecated-d
ropdown-item-stub>
<router-link-stub
class="d-flex js-version-link"
to="[object Object]"
...
...
@@ -106,6 +106,6 @@ exports[`Design management design version dropdown component renders design vers
<!---->
</router-link-stub>
</gl-dropdown-item-stub>
</gl-dropdown-stub>
</gl-d
eprecated-d
ropdown-item-stub>
</gl-d
eprecated-d
ropdown-stub>
`;
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