OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Make dropzone text configurable
Oliver Günther19131828ad0a
diff --git a/frontend/src/app/shared/components/attachments/attachments.component.html b/frontend/src/app/shared/components/attachments/attachments.component.htmlindex d20b30203f1..b05e3f5dcf2 100644--- a/frontend/src/app/shared/components/attachments/attachments.component.html+++ b/frontend/src/app/shared/components/attachments/attachments.component.html@@ -43,12 +43,12 @@<span*ngIf="(attachments$ | async).length > 0"class="op-file-section--drop-box-text"- [textContent]="text.dropFiles"+ [textContent]="dropZoneText || text.dropFiles"></span><span*ngIf="(attachments$ | async).length === 0"class="op-file-section--drop-box-text"- [textContent]="text.dropClickFiles"+ [textContent]="dropZoneText || text.dropClickFiles"></span></button>diff --git a/frontend/src/app/shared/components/attachments/attachments.component.ts b/frontend/src/app/shared/components/attachments/attachments.component.tsindex 9d70e31406f..508fb56edb5 100644--- a/frontend/src/app/shared/components/attachments/attachments.component.ts+++ b/frontend/src/app/shared/components/attachments/attachments.component.ts@@ -82,6 +82,8 @@ export class OpAttachmentsComponent extends UntilDestroyedMixin implements OnIni@Input() public showTimestamp = true;+ @Input() public dropZoneText:string|null = null;+public attachments$:Observable<IAttachment[]>;public draggingOverDropZone = false;diff --git a/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erb b/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erbindex 36e5a27cfd2..c81d42b4c72 100644--- a/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erb+++ b/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erb@@ -9,6 +9,7 @@helpers.list_attachments(resource,'data-allow-uploading': true,'data-show-timestamp': false,+ 'data-drop-zone-text': I18n.t('meeting.attachments.dropzone_text').to_json,'data-external-upload-button': "#meetings-add-attachments".to_json)enddiff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.ymlindex 359ed4967e5..0cc1ca45bb6 100644--- a/modules/meeting/config/locales/en.yml+++ b/modules/meeting/config/locales/en.yml@@ -113,6 +113,8 @@ en:label_start_date: "Start date"meeting:+ attachments:+ dropzone_text: "Click or drop files here or into agenda item notes to attach them to the meeting."copy:title: "Copy meeting %{title}"attachments: "Copy attachments"