This commit is contained in:
2026-06-25 12:54:29 -05:00
parent 56e34475fc
commit 6c6514e70f
4 changed files with 101 additions and 31 deletions

View File

@@ -69,7 +69,8 @@ const props = defineProps({
hosts: { type: Array, default: () => [] },
credentials: { type: Array, default: () => [] },
job: { type: Object, default: null },
running: Boolean
running: Boolean,
error: { type: String, default: '' }
});
const emit = defineEmits(['close', 'execute']);
@@ -95,6 +96,7 @@ const terminalRows = computed(() => {
`Status: ${props.job.status || 'queued'}`,
''
];
if (props.error) lines.push(`[${new Date().toISOString()}] [ERROR] ${props.error}`);
for (const log of props.job.logs || []) {
lines.push(`[${log.createdAt || ''}] [${String(log.stream || 'system').toUpperCase()}] [${log.hostName || selectedHost.value?.name || 'host'}] ${log.line}`);
}