feat: «Скачать все» для вложений заявки

Над списком вложений (от двух файлов) — кнопка «Скачать все»: файлы
скачиваются по очереди, без архива, через download.aspx SharePoint, чтобы
PDF и картинки не открывались в просмотре. Обёртка над AttachmentList
из ui-kit подменена в shared/ui, поэтому кнопка появилась во всех формах
и карточках без правок в них; в чате выключена.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Тимур Городецкий
2026-09-29 12:42:42 +05:00
parent ab3593c170
commit e9702a53d4
6 changed files with 151 additions and 2 deletions
@@ -34,7 +34,8 @@ export const ChatMessage: React.FC<IChatMessageProps> = ({ message }) => (
{message.text && <div className={styles.text}>{message.text}</div>}
{message.attachments.length > 0 && (
<div className={styles.attachments}>
<AttachmentList items={message.attachments} />
{/* В сообщении чата «Скачать все» ни к чему — там обычно один-два файла. */}
<AttachmentList items={message.attachments} downloadAll={false} />
</div>
)}
</div>