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

Remove button icons in modal

Oliver Güntheredf77d143e64
diff --git a/frontend/src/app/shared/components/time_entries/create/create.modal.ts b/frontend/src/app/shared/components/time_entries/create/create.modal.ts
index 92edfcdc04a..6025be38a49 100644
--- a/frontend/src/app/shared/components/time_entries/create/create.modal.ts
+++ b/frontend/src/app/shared/components/time_entries/create/create.modal.ts
@@ -22,8 +22,4 @@ export class TimeEntryCreateModalComponent extends TimeEntryBaseModal {
this.createdEntry = $event.savedResource as TimeEntryResource;
this.reloadWorkPackageAndClose();
}
-
- public get saveText() {
- return this.i18n.t('js.label_create');
- }
}
diff --git a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
index e568f43cd22..5c280d0870b 100644
--- a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
+++ b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
@@ -21,31 +21,21 @@
<button class="button -danger"
*ngIf="deleteAllowed"
(click)="destroy()"
- [attr.title]="text.delete">
- <op-icon icon-classes="button--icon icon-delete"></op-icon>
- <span class="button--text"
[textContent]="text.delete"
- aria-hidden="true"></span>
- </button>
+ [attr.title]="text.delete">
<section>
<button class="button"
*ngIf="saveAllowed"
(click)="closeMe($event)"
- [attr.title]="text.cancel">
- <op-icon icon-classes="button--icon icon-close"></op-icon>
- <span class="button--text"
[textContent]="text.cancel"
- aria-hidden="true"></span>
+ [attr.title]="text.cancel">
</button>
<button class="button -highlight"
*ngIf="saveAllowed"
(click)="saveEntry()"
- [attr.title]="saveText"
+ [attr.title]="text.save"
+ [textContent]="text.save"
[disabled]="formInFlight">
- <op-icon icon-classes="button--icon icon-checkmark"></op-icon>
- <span class="button--text"
- [textContent]="saveText"
- aria-hidden="true"></span>
</button>
</section>
</div>
diff --git a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts
index a6ab11e4bff..f2d58bf47b4 100644
--- a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts
+++ b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts
@@ -25,6 +25,7 @@ export abstract class TimeEntryBaseModal extends OpModalComponent {
title: this.i18n.t('js.time_entry.title'),
cancel: this.i18n.t('js.button_cancel'),
close: this.i18n.t('js.button_close'),
+ save: this.i18n.t('js.button_save'),
delete: this.i18n.t('js.button_delete'),
areYouSure: this.i18n.t('js.text_are_you_sure'),
};
@@ -74,10 +75,6 @@ export abstract class TimeEntryBaseModal extends OpModalComponent {
});
}
- public get saveText():string {
- return this.i18n.t('js.button_save');
- }
-
public get saveAllowed():boolean {
return true;
}