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
Improve modal buttons (#9313)
Benjamin Bädorf9b5a39ced008
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.htmlindex a9603341bd2..c4f6813ab24 100644--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html@@ -30,33 +30,37 @@<div class="op-modal--footer"><div *ngIf="!eeTrialService.status || eeTrialService.cancelled; else mailSubmitted">- <button class="confirm-form-submit--continue button -highlight"- (click)="onSubmit()"- [disabled]="!trialForm || trialForm.invalid"- [textContent]="text.button_submit"- [attr.title]="text.button_submit"- [hidden]="eeTrialService.mailSubmitted && !eeTrialService.cancelled">- </button>- <button class="confirm-form-submit--cancel button"- (click)="closeModal($event)"- [textContent]="text.button_cancel"- [attr.title]="text.button_cancel">- </button>+ <button+ class="confirm-form-submit--cancel button"+ (click)="closeModal($event)"+ [textContent]="text.button_cancel"+ [attr.title]="text.button_cancel"+ ></button>+ <button+ class="confirm-form-submit--continue button -highlight"+ (click)="onSubmit()"+ [disabled]="!trialForm || trialForm.invalid"+ [textContent]="text.button_submit"+ [attr.title]="text.button_submit"+ [hidden]="eeTrialService.mailSubmitted && !eeTrialService.cancelled"+ ></button></div><ng-template #mailSubmitted>- <button class="confirm-form-submit--continue button -highlight"- (click)="startEnterpriseTrial()"- [textContent]="text.button_continue"- [attr.title]="text.button_continue"- [disabled]="!eeTrialService.confirmed"- [hidden]="eeTrialService.trialStarted">- </button>- <button *ngIf="eeTrialService.trialStarted"- class="confirm-form-submit--continue button -highlight"- (click)="closeModal($event)"- [textContent]="text.button_continue"- [attr.title]="text.button_continue">- </button>+ <button+ class="confirm-form-submit--continue button -highlight"+ (click)="startEnterpriseTrial()"+ [textContent]="text.button_continue"+ [attr.title]="text.button_continue"+ [disabled]="!eeTrialService.confirmed"+ [hidden]="eeTrialService.trialStarted"+ ></button>+ <button+ *ngIf="eeTrialService.trialStarted"+ class="confirm-form-submit--continue button -highlight"+ (click)="closeModal($event)"+ [textContent]="text.button_continue"+ [attr.title]="text.button_continue"+ ></button></ng-template></div></div>\ No newline at end of filediff --git a/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html b/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.htmlindex 687dfdb53c6..3bec8b2e78b 100644--- a/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html+++ b/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html@@ -50,15 +50,17 @@</fieldset></div><div class="op-modal--footer">- <button class="op-modal--cancel-button button"- (click)="closeMe($event)"- type="button"- tabindex="4"- [textContent]="text.button_cancel"+ <button+ class="op-modal--cancel-button button"+ (click)="closeMe($event)"+ type="button"+ tabindex="4"+ [textContent]="text.button_cancel"></button>- <button class="op-modal--submit-button button -highlight"- tabindex="3"- [textContent]="text.button_save"+ <button+ class="op-modal--submit-button button -highlight"+ tabindex="3"+ [textContent]="text.button_save"></button></div></form>diff --git a/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html b/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.htmlindex c9cd6de7f09..4cc7e985901 100644--- a/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html+++ b/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html@@ -34,15 +34,17 @@</div><div class="op-modal--footer">- <button class="op-modal--cancel-button button"- (click)="closeMe($event)"- tabindex="4"- type="button"- [textContent]="text.button_cancel"+ <button+ class="op-modal--cancel-button button"+ (click)="closeMe($event)"+ tabindex="4"+ type="button"+ [textContent]="text.button_cancel"></button>- <button class="op-modal--submit-button button -highlight"- tabindex="3"- [textContent]="text.button_save"+ <button+ class="op-modal--submit-button button -highlight"+ tabindex="3"+ [textContent]="text.button_save"></button></div></form>diff --git a/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html b/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.htmlindex 1b8ef045f3e..b845bdede28 100644--- a/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html+++ b/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html@@ -32,17 +32,19 @@</fieldset></div><div class="op-modal--footer">- <button class="op-modal--cancel-button button"- (click)="closeMe($event)"- tabindex="4"- [textContent]="text.button_cancel"- [attr.title]="text.button_cancel">- </button>- <button class="op-modal--submit-button button -highlight"- (click)="applyAndClose($event)"- tabindex="3"- [textContent]="text.button_save"- [attr.title]="text.button_save">- </button>+ <button+ class="op-modal--cancel-button button"+ (click)="closeMe($event)"+ tabindex="4"+ [textContent]="text.button_cancel"+ [attr.title]="text.button_cancel"+ ></button>+ <button+ class="op-modal--submit-button button -highlight"+ (click)="applyAndClose($event)"+ tabindex="3"+ [textContent]="text.button_save"+ [attr.title]="text.button_save"+ ></button></div></form>diff --git a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html b/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.htmlindex f284f7e974d..d81a9fd66b4 100644--- a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html+++ b/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html@@ -40,12 +40,14 @@<div class="form--field-container -vertical"><label class="form--label-with-check-box"><div class="form--check-box-container">- <input type="checkbox"- tabindex="2"- id="wp_button_macro_style"- (change)="buttonStyle = $event.target.checked"- [checked]="buttonStyle"- name="button_style" />+ <input+ type="checkbox"+ tabindex="2"+ id="wp_button_macro_style"+ (change)="buttonStyle = $event.target.checked"+ [checked]="buttonStyle"+ name="button_style"+ /></div>{{ text.button_style }}</label>@@ -55,15 +57,17 @@</div><div class="op-modal--footer">- <button class="op-modal--cancel-button button"- (click)="closeMe($event)"- tabindex="4"- type="button"- [textContent]="text.button_cancel"+ <button+ class="op-modal--cancel-button button"+ (click)="closeMe($event)"+ tabindex="4"+ type="button"+ [textContent]="text.button_cancel"></button>- <button class="op-modal--submit-button button -highlight"- tabindex="3"- [textContent]="text.button_save"+ <button+ class="op-modal--submit-button button -highlight"+ tabindex="3"+ [textContent]="text.button_save"></button></div></form>diff --git a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html b/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.htmlindex 3cb25184cc5..59235a0fd1b 100644--- a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html+++ b/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html@@ -30,7 +30,7 @@<div class="op-modal--footer"><button- class="confirm-form-submit--continue button"+ class="confirm-form-submit--continue button -highlight"[textContent]="text.confirm_button"[disabled]="!passwordValuePresent()">></button>diff --git a/frontend/src/app/components/modals/save-modal/save-query.modal.html b/frontend/src/app/components/modals/save-modal/save-query.modal.htmlindex 88549774efa..3d47d84a019 100644--- a/frontend/src/app/components/modals/save-modal/save-query.modal.html+++ b/frontend/src/app/components/modals/save-modal/save-query.modal.html@@ -37,14 +37,16 @@</div><div class="op-modal--footer">- <button class="button -highlight -with-icon icon-checkmark"- (click)="saveQueryAs($event)"- [textContent]="text.button_save"- [disabled]="isBusy || !queryName">- </button>- <button class="button -with-icon icon-cancel"- [textContent]="text.button_cancel"- (click)="closeMe($event)">- </button>+ <button+ class="button -with-icon icon-cancel"+ [textContent]="text.button_cancel"+ (click)="closeMe($event)"+ ></button>+ <button+ class="button -highlight -with-icon icon-checkmark"+ (click)="saveQueryAs($event)"+ [textContent]="text.button_save"+ [disabled]="isBusy || !queryName"+ ></button></div></form>diff --git a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.html b/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.htmlindex 13d4568bc1b..069daf31fb6 100644--- a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.html+++ b/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.html@@ -64,14 +64,16 @@</div><div class="op-modal--footer">- <button class="button -danger"- [textContent]="text.confirm"- [attr.disabled]="busy || blockedDueToUnconfirmedChildren || undefined"- (click)="confirmDeletion($event)">- </button>- <button class="button"- [textContent]="text.cancel"- (click)="closeMe($event)">- </button>+ <button+ class="button"+ [textContent]="text.cancel"+ (click)="closeMe($event)"+ ></button>+ <button+ class="button -danger"+ [textContent]="text.confirm"+ [attr.disabled]="busy || blockedDueToUnconfirmedChildren || undefined"+ (click)="confirmDeletion($event)"+ ></button></div></div>diff --git a/frontend/src/app/modules/attribute-help-texts/help-text.modal.html b/frontend/src/app/modules/attribute-help-texts/help-text.modal.htmlindex 69e9b2acaee..a85d54d3754 100644--- a/frontend/src/app/modules/attribute-help-texts/help-text.modal.html+++ b/frontend/src/app/modules/attribute-help-texts/help-text.modal.html@@ -13,16 +13,19 @@[innerHtml]="helpText.helpText.html"></div>- <attachments [resource]="helpText"- data-allow-uploading="false">- </attachments>+ <attachments+ [resource]="helpText"+ data-allow-uploading="false"+ ></attachments></div><div class="op-modal--footer">- <a class="help-text--edit-button button"- *ngIf="helpText.editText"- [attr.href]="helpTextLink"- [attr.title]="text.edit">+ <a+ class="help-text--edit-button button"+ *ngIf="helpText.editText"+ [attr.href]="helpTextLink"+ [attr.title]="text.edit"+ ><op-icon icon-classes="button--icon icon-edit"></op-icon><span class="button--text" [textContent]="text.edit"></span></a>diff --git a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html b/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.htmlindex 8f666efbeb8..7afdd3e214a 100644--- a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html+++ b/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html@@ -30,16 +30,18 @@</div></div><div class="op-modal--footer">- <button class="button -highlight"- (click)="create()"- [disabled]="!this.selectedAttribute || inFlight"- [textContent]="text.button_add"- [attr.title]="text.button_add">- </button>- <button class="confirm-form-submit--cancel button"- (click)="closeMe($event)"- [textContent]="text.button_cancel"- [attr.title]="text.button_cancel">- </button>+ <button+ class="confirm-form-submit--cancel button"+ (click)="closeMe($event)"+ [textContent]="text.button_cancel"+ [attr.title]="text.button_cancel"+ ></button>+ <button+ class="button -highlight"+ (click)="create()"+ [disabled]="!this.selectedAttribute || inFlight"+ [textContent]="text.button_add"+ [attr.title]="text.button_add"+ ></button></div></div>diff --git a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.html b/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.htmlindex 7ca4a1b4fc9..01c58a85df0 100644--- a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.html+++ b/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.html@@ -32,16 +32,14 @@<div class="op-modal--footer"><button- class="button -highlight"- [textContent]="text.applyButton"- (click)="saveChanges()"- >- </button>+ class="button"+ [textContent]="text.cancelButton"+ (click)="closeMe($event)"+ ></button><button- class="button"- [textContent]="text.cancelButton"- (click)="closeMe($event)"- >- </button>+ class="button -highlight"+ [textContent]="text.applyButton"+ (click)="saveChanges()"+ ></button></div></div>diff --git a/frontend/src/app/modules/grids/widgets/add/add.modal.html b/frontend/src/app/modules/grids/widgets/add/add.modal.htmlindex 89491abeb81..c1991ad45d4 100644--- a/frontend/src/app/modules/grids/widgets/add/add.modal.html+++ b/frontend/src/app/modules/grids/widgets/add/add.modal.html@@ -5,18 +5,20 @@<op-modal-header (close)="closeMe($event)">{{text.title}}</op-modal-header><div class="ngdialog-body op-modal--body">- <div *ngFor="let widget of selectable;trackBy: trackWidgetBy"- (click)="select($event, widget)"- [id]="widget.identifier"- [textContent]="widget.title"- class="grid--addable-widget" >- </div>+ <div+ *ngFor="let widget of selectable;trackBy: trackWidgetBy"+ (click)="select($event, widget)"+ [id]="widget.identifier"+ [textContent]="widget.title"+ class="grid--addable-widget"+ ></div>- <enterprise-banner *ngIf="eeShowBanners"- [linkMessage]="text.upsale_link"- [textMessage]="text.upsale_text"- class="grid--add-widget-ee"- opReferrer="grids#add-widget">- </enterprise-banner>+ <enterprise-banner+ *ngIf="eeShowBanners"+ [linkMessage]="text.upsale_link"+ [textMessage]="text.upsale_text"+ class="grid--add-widget-ee"+ opReferrer="grids#add-widget"+ ></enterprise-banner></div></div>diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html b/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.htmlindex 1e9c5fabe13..5456603712e 100644--- a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html+++ b/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html@@ -24,14 +24,16 @@<div class="tab-content"></div><div class="modal--form-actions">- <button class="button -highlight"- [textContent]="text.applyButton"- (click)="saveChanges()">- </button>- <button class="button"- [textContent]="text.cancelButton"- (click)="closeMe($event)">- </button>+ <button+ class="button"+ [textContent]="text.cancelButton"+ (click)="closeMe($event)"+ ></button>+ <button+ class="button -highlight"+ [textContent]="text.applyButton"+ (click)="saveChanges()"+ ></button></div></div></div>diff --git a/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.html b/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.htmlindex 8173d298683..aa2693f0afb 100644--- a/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.html+++ b/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.html@@ -14,12 +14,13 @@<span class="job-status--modal-main-message" [textContent]="message"></span><span [hidden]="!downloadHref">{{ text.download_starts }}- <a #downloadLink- download- target="_blank"- [textContent]="text.click_to_download"- [attr.href]="downloadHref">- </a>+ <a+ #downloadLink+ download+ target="_blank"+ [textContent]="text.click_to_download"+ [attr.href]="downloadHref"+ ></a></span><ng-container *ngIf="payload?.errors"><h3 class="job-status--modal-additional-errors" [textContent]="text.errors"></h3>