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