improvement: treatments UI/UX updated again to minimize clicking and scrolling.

This commit is contained in:
2026-08-19 23:59:37 +03:30
parent 29c639f5a1
commit d2f07c0ed3
33 changed files with 1651 additions and 744 deletions

View File

@@ -1,6 +1,7 @@
import {
Body,
Controller,
Delete,
Get,
Param,
Patch,
@@ -92,6 +93,13 @@ export class CasesController {
return this.casesService.startInternal(id, organizationId, req.user.id, req.user.language);
}
@Delete(':id')
@ApiOperation({ summary: 'Delete an unstarted lab-origin draft (TAB_CASES_EDIT)' })
deleteDraft(@Param('id') id: string, @Req() req) {
const organizationId = this.casesService.getOrganizationIdFromUser(req.user);
return this.casesService.deleteInternalDraft(id, organizationId, req.user.id);
}
@Post(':id/lines/:lineClientKey/attachments')
@ApiOperation({ summary: 'Upload attachments for a lab-origin draft line' })
@ApiConsumes('multipart/form-data')