feat: add possibility to hide upload button #25

Merged
jriou merged 1 commit from tapiron/coller:feat/make_file_upload_button_optional into main 2025-09-15 09:20:51 +02:00
Contributor

I was asked to add the possibility to hide the upload button to avoid users confuse this tool for a file sharing app.
This is only on the front.

No breaking changes, by default the button is displayed.

I was asked to add the possibility to hide the upload button to avoid users confuse this tool for a file sharing app. This is only on the front. No breaking changes, by default the button is displayed.
@ -25,6 +25,7 @@ type Config struct {
ObservationInterval int `json:"observation_internal"`
Languages []string `json:"languages"`
Language string `json:"language"`
UploadFileButton bool `json:"upload_file_button"`
Owner

Could you update the README.md file with this new setting please?

Could you update the [README.md](https://git.riou.xyz/jriou/coller/src/branch/main/src/cmd/collerd/README.md) file with this new setting please?
Owner

For booleans, I would like to add an "enable" prefix like enable_upload_file_button.

For booleans, I would like to add an "enable" prefix like `enable_upload_file_button`.
Author
Contributor

Updated variable names, json config key and added doc in README.md.

I also removed useless if statement.

Updated variable names, json config key and added doc in README.md. I also removed useless if statement.
tapiron marked this conversation as resolved
tapiron force-pushed feat/make_file_upload_button_optional from cfdf653c47 to 4944e47e76 2025-09-14 19:24:31 +02:00 Compare
jriou approved these changes 2025-09-15 06:52:22 +02:00
Dismissed
jriou left a comment
Owner

LGTM

LGTM
tapiron force-pushed feat/make_file_upload_button_optional from 4944e47e76 to 3f8d42571b 2025-09-15 09:17:54 +02:00 Compare
Author
Contributor

I resolved the conflict, should be good to merge

I resolved the conflict, should be good to merge
jriou approved these changes 2025-09-15 09:20:42 +02:00
jriou merged commit e03aa6b87a into main 2025-09-15 09:20:51 +02:00
Owner

Thank you for your contribution!

Thank you for your contribution!
jriou deleted branch feat/make_file_upload_button_optional 2025-09-15 09:21:05 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jriou/coller#25
No description provided.