2020-10-24 23:57:45 +05:30
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'DependencyRow',
|
|
|
|
props: {
|
|
|
|
dependency: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
showVersion() {
|
|
|
|
return Boolean(this.dependency.version_pattern);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="gl-responsive-table-row">
|
|
|
|
<div class="table-section section-50">
|
|
|
|
<strong class="gl-text-body">{{ dependency.name }}</strong>
|
|
|
|
<span v-if="dependency.target_framework" data-testid="target-framework"
|
|
|
|
>({{ dependency.target_framework }})</span
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="showVersion"
|
2020-11-24 15:15:51 +05:30
|
|
|
class="table-section section-50 gl-display-flex gl-md-justify-content-end"
|
2020-10-24 23:57:45 +05:30
|
|
|
data-testid="version-pattern"
|
|
|
|
>
|
|
|
|
<span class="gl-text-body">{{ dependency.version_pattern }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|