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
9d4be41c
Commit
9d4be41c
authored
Nov 10, 2020
by
Marvin Karegyeya
Committed by
Nicolò Maria Mezzopera
Nov 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate Bootstrap dropdown to GlDropdown in stages_dropdown.vue
parent
7b3f3de2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
app/assets/javascripts/jobs/components/stages_dropdown.vue
app/assets/javascripts/jobs/components/stages_dropdown.vue
+13
-16
changelogs/unreleased/Migrate-Bootstrap-dropdown-to-GitLab-UI-GlDropdown-in-app-assets-javascri.yml
...opdown-to-GitLab-UI-GlDropdown-in-app-assets-javascri.yml
+5
-0
No files found.
app/assets/javascripts/jobs/components/stages_dropdown.vue
View file @
9d4be41c
<
script
>
import
{
isEmpty
}
from
'
lodash
'
;
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
{
GlLink
,
GlDropdown
,
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
CiIcon
from
'
~/vue_shared/components/ci_icon.vue
'
;
export
default
{
components
:
{
CiIcon
,
GlDropdown
,
GlDropdownItem
,
GlLink
,
},
props
:
{
...
...
@@ -78,20 +80,15 @@ export default {
</template>
</div>
<button
type=
"button"
data-toggle=
"dropdown"
class=
"js-selected-stage dropdown-menu-toggle gl-mt-3"
>
{{ selectedStage }}
<i
class=
"fa fa-chevron-down"
></i>
</button>
<ul
class=
"dropdown-menu"
>
<li
v-for=
"stage in stages"
:key=
"stage.name"
>
<button
type=
"button"
class=
"js-stage-item stage-item"
@
click=
"onStageClick(stage)"
>
{{ stage.name }}
</button>
</li>
</ul>
<gl-dropdown
:text=
"selectedStage"
class=
"js-selected-stage gl-w-full gl-mt-3"
>
<gl-dropdown-item
v-for=
"stage in stages"
:key=
"stage.name"
class=
"js-stage-item stage-item"
@
click=
"onStageClick(stage)"
>
{{ stage.name }}
</gl-dropdown-item>
</gl-dropdown>
</div>
</template>
changelogs/unreleased/Migrate-Bootstrap-dropdown-to-GitLab-UI-GlDropdown-in-app-assets-javascri.yml
0 → 100644
View file @
9d4be41c
---
title
:
Migrate-Bootstrap-dropdown-to-GitLab-UI-GlDropdown-in-app/assets/javascripts/jobs/components/stages_dropdown.vue
merge_request
:
41452
author
:
nuwe1
type
:
other
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