Commit f5189158 authored by clenneville's avatar clenneville

Update dropdown to gl components

parent 32642199
...@@ -6,9 +6,9 @@ import { ...@@ -6,9 +6,9 @@ import {
GlFormInput, GlFormInput,
GlFormSelect, GlFormSelect,
GlLoadingIcon, GlLoadingIcon,
GlDeprecatedDropdown, GlDropdown,
GlDeprecatedDropdownHeader, GlDropdownSectionHeader,
GlDeprecatedDropdownItem, GlDropdownItem,
GlSprintf, GlSprintf,
} from '@gitlab/ui'; } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
...@@ -76,9 +76,9 @@ export default { ...@@ -76,9 +76,9 @@ export default {
GlFormSelect, GlFormSelect,
GlLoadingIcon, GlLoadingIcon,
LabelsSelector, LabelsSelector,
GlDeprecatedDropdown, GlDropdown,
GlDeprecatedDropdownHeader, GlDropdownSectionHeader,
GlDeprecatedDropdownItem, GlDropdownItem,
GlSprintf, GlSprintf,
}, },
props: { props: {
...@@ -257,21 +257,24 @@ export default { ...@@ -257,21 +257,24 @@ export default {
<form v-else class="custom-stage-form m-4 mt-0"> <form v-else class="custom-stage-form m-4 mt-0">
<div class="mb-1 d-flex flex-row justify-content-between"> <div class="mb-1 d-flex flex-row justify-content-between">
<h4>{{ formTitle }}</h4> <h4>{{ formTitle }}</h4>
<gl-deprecated-dropdown <gl-dropdown
:text="__('Recover hidden stage')" :text="__('Recover hidden stage')"
class="js-recover-hidden-stage-dropdown" class="js-recover-hidden-stage-dropdown"
category="tertiary"
variant="default"
size="medium"
> >
<gl-deprecated-dropdown-header>{{ __('Default stages') }}</gl-deprecated-dropdown-header> <gl-dropdown-section-header>{{ __('Default stages') }}</gl-dropdown-section-header>
<template v-if="hasHiddenStages"> <template v-if="hasHiddenStages">
<gl-deprecated-dropdown-item <gl-dropdown-item
v-for="stage in hiddenStages" v-for="stage in hiddenStages"
:key="stage.id" :key="stage.id"
@click="handleRecoverStage(stage.id)" @click="handleRecoverStage(stage.id)"
>{{ stage.title }}</gl-deprecated-dropdown-item >{{ stage.title }}</gl-dropdown-item
> >
</template> </template>
<p v-else class="mx-3 my-2">{{ __('All default stages are currently visible') }}</p> <p v-else class="mx-3 my-2">{{ __('All default stages are currently visible') }}</p>
</gl-deprecated-dropdown> </gl-dropdown>
</div> </div>
<gl-form-group <gl-form-group
ref="name" ref="name"
......
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