diff --git a/frontend/src/components/AssetTriageBand.vue b/frontend/src/components/AssetTriageBand.vue index 15556f89..62a0d5e3 100644 --- a/frontend/src/components/AssetTriageBand.vue +++ b/frontend/src/components/AssetTriageBand.vue @@ -19,6 +19,20 @@ +
+ {{ item.label }} + + {{ link.text }} + +
+
Remote access @@ -86,7 +100,15 @@ const props = defineProps({ // printer through usesprinter and defaultprinter. Hardcoding 'controls' // left the band blank on the printer page, which is the one page where the // link is not obvious from the asset itself. - relationshiptypes: { type: Array, default: () => ['controls'] } + relationshiptypes: { type: Array, default: () => ['controls'] }, + // Triage facts a page knows but core cannot derive from a relationship + // edge. The machine page's dual-bay sibling is the case this exists for: + // it is resolved by the machines plugin, not from the relationships + // endpoint, and it used to sit in its own banner above the hero - two + // strips of chrome saying two halves of the same "what am I looking at". + // Shape: [{ label, links: [{ text, to }] }]. A link with no `to` renders + // as plain text rather than a dead chip. + extraitems: { type: Array, default: () => [] } }) const machines = ref([]) @@ -102,6 +124,7 @@ const hasAnything = computed(() => Boolean(slots.actions) || Boolean(props.liveness) || machines.value.length > 0 || + props.extraitems.length > 0 || (props.accessmethods && props.accessmethods.length > 0) || Boolean(props.locationname) ) diff --git a/plugins/machines/frontend/views/MachineDetail.vue b/plugins/machines/frontend/views/MachineDetail.vue index f9d49c88..b7e0867d 100644 --- a/plugins/machines/frontend/views/MachineDetail.vue +++ b/plugins/machines/frontend/views/MachineDetail.vue @@ -20,16 +20,6 @@
Loading...