Skip to content

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

cancel button on create modal

ulferts935f1ce59c7b
diff --git a/frontend/src/app/modules/time_entries/create/create.modal.html b/frontend/src/app/modules/time_entries/create/create.modal.html
index 65cf3c73567..d5606d7bb78 100644
--- a/frontend/src/app/modules/time_entries/create/create.modal.html
+++ b/frontend/src/app/modules/time_entries/create/create.modal.html
@@ -26,6 +26,12 @@
[textContent]="text.create"
[attr.title]="text.create">
</button>
+
+ <button class="button"
+ (click)="closeMe($event)"
+ [textContent]="text.cancel"
+ [attr.title]="text.cancel">
+ </button>
</div>
</div>
</div>
diff --git a/frontend/src/app/modules/time_entries/create/create.modal.ts b/frontend/src/app/modules/time_entries/create/create.modal.ts
index 8177fda4950..6e08d9f5350 100644
--- a/frontend/src/app/modules/time_entries/create/create.modal.ts
+++ b/frontend/src/app/modules/time_entries/create/create.modal.ts
@@ -22,7 +22,8 @@ export class TimeEntryCreateModal extends OpModalComponent {
text = {
title: this.i18n.t('js.time_entry.edit'),
create: this.i18n.t('js.label_create'),
- close: this.i18n.t('js.button_close')
+ close: this.i18n.t('js.button_close'),
+ cancel: this.i18n.t('js.button_cancel')
};
public closeOnEscape = false;