Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
S3bastianCZ committed Feb 27, 2025
1 parent b4c23ac commit 1f54105
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions @xen-orchestra/web/src/components/pif/PifRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ import { useRouter } from 'vue-router'
const { pif } = defineProps<{
pif: XoPif
}>()
const { records: hosts } = useHostStore().subscribe()
const { get } = useHostStore().subscribe()
const { getPifStatus } = usePifStore().subscribe()
const router = useRouter()
const status = computed(() => getPifStatus(pif))
const pifHost = computed(() => {
const host = hosts.value.find(host => host.id === pif.$host)
const host = get(pif.$host)
if (!host) {
return
}
return {
label: host.name_label,
powerState: host.power_state ? 'running' : 'halted',
powerState: host.power_state === 'Running' ? 'running' : 'halted',
redirect() {
router.push({
name: '/host/[id]/networks',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ const { visibleColumns, rows } = useTable('networks', filteredNetworks, {
columns: define => [
define('checkbox', noop, { label: '', isHideable: false }),
define('name_label', { label: t('name') }),
define('name_description', {
label: t('description'),
}),
define('name_description', { label: t('description') }),
define('MTU', { label: t('mtu') }),
define('default_locking_mode', record => getLockingMode(record.default_locking_mode), {
label: t('default-locking-mode'),
Expand Down
10 changes: 3 additions & 7 deletions @xen-orchestra/web/src/components/pool/PoolNetworkSidePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@
<template #key>
{{ $t('id') }}
</template>
<template #value>
<div class="value">
{{ network.id }}
</div>
</template>
<template #value>{{ network.id }}</template>
<template v-if="network.id" #addons>
<UiButtonIcon
v-tooltip="copied && $t('core.copied')"
Expand All @@ -53,9 +49,9 @@
<VtsCardRowKeyValue>
<template #key>{{ $t('description') }}</template>
<template #value>
<div class="value">
<span class="value">
{{ network.name_description }}
</div>
</span>
</template>
<template v-if="network.name_description" #addons>
<UiButtonIcon
Expand Down

0 comments on commit 1f54105

Please sign in to comment.