debian-mirror-gitlab/app/assets/javascripts/runner/components/cells/link_cell.vue
2022-04-04 11:22:00 +05:30

27 lines
429 B
Vue

<script>
import { GlLink } from '@gitlab/ui';
export default {
props: {
href: {
type: String,
required: false,
default: null,
},
},
computed: {
component() {
if (this.href) {
return GlLink;
}
return 'span';
},
},
};
</script>
<template>
<component :is="component" :href="href" v-bind="$attrs" v-on="$listeners">
<slot></slot>
</component>
</template>