Francesco Torchia 4f2688f6ab
Add pkg/harvester components + shell portings - 1
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-23 17:00:46 +02:00

37 lines
696 B
Vue

<script>
import { NODE } from '@shell/config/types';
import CopyToClipboardText from '@shell/components/CopyToClipboardText';
export default {
components: { CopyToClipboardText },
props: {
value: {
type: String,
default: ''
},
},
computed: {
node() {
const inStore = this.$store.getters['currentProduct'].inStore;
return this.$store.getters[`${ inStore }/byId`](NODE, this.value);
},
ip() {
return this.node?.internalIp;
},
nameDisplay() {
return this.node?.nameDisplay || '';
}
},
};
</script>
<template>
<div>
<CopyToClipboardText v-clean-tooltip="ip" :text="nameDisplay" />
</div>
</template>