feat: update success status labels to dynamically reflect specific action results in InboxDetailPage
Build and Push Multi-Platform Images / build-and-push (push) Successful in 17s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 17s
This commit is contained in:
@@ -335,19 +335,28 @@ function PostprocessWizardModal({
|
||||
antStatus = 'wait';
|
||||
}
|
||||
|
||||
const actionLabels: Record<string, string> = {
|
||||
PAPERLESS: 'An Paperless gesendet',
|
||||
MAIL: 'Per E-Mail versendet',
|
||||
EXPORT: 'Exportiert',
|
||||
};
|
||||
const successLabel = step.results && step.results.length > 0
|
||||
? [...new Set(step.results.map((r) => actionLabels[r.actionType] ?? r.actionType))].join(', ')
|
||||
: 'Verarbeitet';
|
||||
|
||||
let description: ReactNode = <span style={{ color: '#999' }}>{pageRange}</span>;
|
||||
if (step.status === 'processing') {
|
||||
description = (
|
||||
<Space direction="vertical" size={2}>
|
||||
<span style={{ color: '#999' }}>{pageRange}</span>
|
||||
<span>An Paperless senden …</span>
|
||||
<span>Wird verarbeitet …</span>
|
||||
</Space>
|
||||
);
|
||||
} else if (step.status === 'success') {
|
||||
description = (
|
||||
<Space direction="vertical" size={2}>
|
||||
<span style={{ color: '#999' }}>{pageRange}</span>
|
||||
<span style={{ color: '#52c41a' }}>An Paperless gesendet</span>
|
||||
<span style={{ color: '#52c41a' }}>{successLabel}</span>
|
||||
</Space>
|
||||
);
|
||||
} else if (step.status === 'duplicate') {
|
||||
|
||||
Reference in New Issue
Block a user