Commit 81b229df authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Enrique Alcántara

Replace gl deprecated dropdown with gl dropdown in...

Replace gl deprecated dropdown with gl dropdown in app/assets/javascripts/snippets/components/snippet header.vue
parent 524ae855
...@@ -6,8 +6,8 @@ import { ...@@ -6,8 +6,8 @@ import {
GlModal, GlModal,
GlAlert, GlAlert,
GlLoadingIcon, GlLoadingIcon,
GlDeprecatedDropdown, GlDropdown,
GlDeprecatedDropdownItem, GlDropdownItem,
GlButton, GlButton,
GlTooltipDirective, GlTooltipDirective,
} from '@gitlab/ui'; } from '@gitlab/ui';
...@@ -28,8 +28,8 @@ export default { ...@@ -28,8 +28,8 @@ export default {
GlModal, GlModal,
GlAlert, GlAlert,
GlLoadingIcon, GlLoadingIcon,
GlDeprecatedDropdown, GlDropdown,
GlDeprecatedDropdownItem, GlDropdownItem,
TimeAgoTooltip, TimeAgoTooltip,
GlButton, GlButton,
}, },
...@@ -231,17 +231,17 @@ export default { ...@@ -231,17 +231,17 @@ export default {
</template> </template>
</div> </div>
<div class="d-block d-sm-none dropdown"> <div class="d-block d-sm-none dropdown">
<gl-deprecated-dropdown :text="__('Options')" class="w-100" toggle-class="text-center"> <gl-dropdown :text="__('Options')" block>
<gl-deprecated-dropdown-item <gl-dropdown-item
v-for="(action, index) in personalSnippetActions" v-for="(action, index) in personalSnippetActions"
:key="index" :key="index"
:disabled="action.disabled" :disabled="action.disabled"
:title="action.title" :title="action.title"
:href="action.href" :href="action.href"
@click="action.click ? action.click() : undefined" @click="action.click ? action.click() : undefined"
>{{ action.text }}</gl-deprecated-dropdown-item >{{ action.text }}</gl-dropdown-item
> >
</gl-deprecated-dropdown> </gl-dropdown>
</div> </div>
</div> </div>
......
---
title: Replace-GlDeprecatedDropdown-with-GlDropdown-in-app/assets/javascripts/snippets/components/snippet_header.vue
merge_request: 41428
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