Commit d854f68b authored by Nick Kipling's avatar Nick Kipling

Changed to use GlNewButton

Updated snapshots
parent b42fd6f9
<script> <script>
import PackageTags from '../../shared/components/package_tags.vue'; import PackageTags from '../../shared/components/package_tags.vue';
import PublishMethod from './publish_method.vue'; import PublishMethod from './publish_method.vue';
import { GlDeprecatedButton, GlIcon, GlLink, GlSprintf, GlTooltipDirective } from '@gitlab/ui'; import { GlNewButton, GlIcon, GlLink, GlSprintf, GlTooltipDirective } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { getPackageType } from '../../shared/utils'; import { getPackageType } from '../../shared/utils';
import timeagoMixin from '~/vue_shared/mixins/timeago'; import timeagoMixin from '~/vue_shared/mixins/timeago';
...@@ -10,7 +10,7 @@ import { mapState } from 'vuex'; ...@@ -10,7 +10,7 @@ import { mapState } from 'vuex';
export default { export default {
name: 'PackagesListRow', name: 'PackagesListRow',
components: { components: {
GlDeprecatedButton, GlNewButton,
GlIcon, GlIcon,
GlLink, GlLink,
GlSprintf, GlSprintf,
...@@ -113,16 +113,16 @@ export default { ...@@ -113,16 +113,16 @@ export default {
</div> </div>
<div v-if="deleteAvailable" class="table-section section-10 d-flex justify-content-end"> <div v-if="deleteAvailable" class="table-section section-10 d-flex justify-content-end">
<gl-deprecated-button <gl-new-button
ref="action-delete" ref="action-delete"
icon="remove"
category="primary"
variant="danger" variant="danger"
:title="s__('PackageRegistry|Remove package')" :title="s__('PackageRegistry|Remove package')"
:aria-label="s__('PackageRegistry|Remove package')" :aria-label="s__('PackageRegistry|Remove package')"
:disabled="!packageEntity._links.delete_api_path" :disabled="!packageEntity._links.delete_api_path"
@click="$emit('packageToDelete', packageEntity)" @click="$emit('packageToDelete', packageEntity)"
> />
<gl-icon name="remove" />
</gl-deprecated-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -80,17 +80,14 @@ exports[`packages_list_row renders 1`] = ` ...@@ -80,17 +80,14 @@ exports[`packages_list_row renders 1`] = `
<div <div
class="table-section section-10 d-flex justify-content-end" class="table-section section-10 d-flex justify-content-end"
> >
<gl-deprecated-button-stub <gl-new-button-stub
aria-label="Remove package" aria-label="Remove package"
size="md" category="primary"
icon="remove"
size="medium"
title="Remove package" title="Remove package"
variant="danger" variant="danger"
> />
<gl-icon-stub
name="remove"
size="16"
/>
</gl-deprecated-button-stub>
</div> </div>
</div> </div>
`; `;
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