Initial
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user