feat(forklift): Applied fix to select the proper data on network. Added condition to show critical

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
This commit is contained in:
Marcelo Fukumoto
2026-07-07 13:36:45 +02:00
parent d4f59a04be
commit 740ca94841
3 changed files with 46 additions and 4 deletions
@@ -215,12 +215,16 @@ const saveMappings = async(buttonCb) => {
};
}
const parts = entry.target.split('/');
const netName = parts.length > 1 ? parts[1] : parts[0];
const netNamespace = parts.length > 1 ? parts[0] : NAMESPACE;
return {
source: { name: entry.name, id: entry.id },
destination: {
type: 'multus',
name: entry.target,
namespace: NAMESPACE,
name: netName,
namespace: netNamespace,
},
};
}),
@@ -262,7 +262,7 @@ init();
</div>
</div>
</div>
<span v-else>-</span>
<span v-if="!row.vmProgress.length">-</span>
</template>
<template #cell:mappings="{ row }">
<MappingsCell