-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upload and attach documents #461
Conversation
|
||
router.post( | ||
'/', | ||
this.attachmentsApplication.uploadPipeline.single('file'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate the file should exist.
router.post( | ||
'/:id/link', | ||
[body('modelRef').exists(), body('modelId').exists()], | ||
this.validationResult |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated code.
packages/server/src/api/controllers/Attachments/AttachmentsController.ts
Outdated
Show resolved
Hide resolved
packages/server/src/api/controllers/Attachments/AttachmentsController.ts
Outdated
Show resolved
Hide resolved
.attachmentButton:not([class*=bp4-intent-]) { | ||
&, | ||
&:hover{ | ||
background-color: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attachment button when be active should change its color when hover it.
No description provided.