mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
Add pkg/harvester components + shell portings - 1
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<script>
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterVFsNum',
|
||||
|
||||
props: {
|
||||
row: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
to() {
|
||||
return {
|
||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource`,
|
||||
params: { cluster: this.$store.getters['clusterId'], resource: this.row.childDevice },
|
||||
query: { parentSriov: this.row.id }
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="vfs-num">
|
||||
<router-link
|
||||
:to="to"
|
||||
>
|
||||
{{ row.numVFs }}
|
||||
</router-link>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user