Commit 9d4be41c authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Nicolò Maria Mezzopera

Migrate Bootstrap dropdown to GlDropdown in stages_dropdown.vue

parent 7b3f3de2
<script> <script>
import { isEmpty } from 'lodash'; 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'; import CiIcon from '~/vue_shared/components/ci_icon.vue';
export default { export default {
components: { components: {
CiIcon, CiIcon,
GlDropdown,
GlDropdownItem,
GlLink, GlLink,
}, },
props: { props: {
...@@ -78,20 +80,15 @@ export default { ...@@ -78,20 +80,15 @@ export default {
</template> </template>
</div> </div>
<button <gl-dropdown :text="selectedStage" class="js-selected-stage gl-w-full gl-mt-3">
type="button" <gl-dropdown-item
data-toggle="dropdown" v-for="stage in stages"
class="js-selected-stage dropdown-menu-toggle gl-mt-3" :key="stage.name"
> class="js-stage-item stage-item"
{{ selectedStage }} <i class="fa fa-chevron-down"></i> @click="onStageClick(stage)"
</button> >
{{ stage.name }}
<ul class="dropdown-menu"> </gl-dropdown-item>
<li v-for="stage in stages" :key="stage.name"> </gl-dropdown>
<button type="button" class="js-stage-item stage-item" @click="onStageClick(stage)">
{{ stage.name }}
</button>
</li>
</ul>
</div> </div>
</template> </template>
---
title: Migrate-Bootstrap-dropdown-to-GitLab-UI-GlDropdown-in-app/assets/javascripts/jobs/components/stages_dropdown.vue
merge_request: 41452
author: nuwe1
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment