(status: string, freshness: string, action: string)
| 159 | |
| 160 | /** Was in der Statusleiste steht, wenn eine Frische-Notiz noetig ist. */ |
| 161 | export function freshnessNote(status: string, freshness: string, action: string): string { |
| 162 | const parts = [freshness.length > 0 ? freshness : 'unknown']; |
| 163 | if (status.length > 0) { |
| 164 | parts.push(status); |
| 165 | } |
| 166 | if (action.length > 0) { |
| 167 | parts.push(action); |
| 168 | } |
| 169 | return parts.join(' / '); |
| 170 | } |
no test coverage detected