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

Add closing tag and use exisiting class for button instead of extra CSS rule

Henriette Darge82d0a1430fad
diff --git a/frontend/src/app/shared/components/modal/modal.sass b/frontend/src/app/shared/components/modal/modal.sass
index 5a0868c851a..0d86dc01f67 100644
--- a/frontend/src/app/shared/components/modal/modal.sass
+++ b/frontend/src/app/shared/components/modal/modal.sass
@@ -80,15 +80,12 @@
padding: calc(0.5 * var(--modal-padding)) var(--modal-padding) var(--modal-padding) var(--modal-padding)
width: 100%
- &_split_actions
+ &_split-actions
justify-content: space-between
.button
margin-bottom: 0
- &:last-of-type
- margin-right: 0
-
@media (max-width: 680px), (max-height: 500px)
padding: var(--modal-padding)
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 5c280d0870b..ea024b80789 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
@@ -17,12 +17,13 @@
</te-form>
</div>
- <div class="op-modal--footer op-modal--footer_split_actions">
+ <div class="op-modal--footer op-modal--footer_split-actions">
<button class="button -danger"
*ngIf="deleteAllowed"
(click)="destroy()"
[textContent]="text.delete"
[attr.title]="text.delete">
+ </button>
<section>
<button class="button"
*ngIf="saveAllowed"
@@ -30,7 +31,7 @@
[textContent]="text.cancel"
[attr.title]="text.cancel">
</button>
- <button class="button -highlight"
+ <button class="button -highlight button_no-margin"
*ngIf="saveAllowed"
(click)="saveEntry()"
[attr.title]="text.save"
diff --git a/modules/my_page/spec/features/my/time_entries_current_user_spec.rb b/modules/my_page/spec/features/my/time_entries_current_user_spec.rb
index 1e47bcc8ec9..0c75797bbb5 100644
--- a/modules/my_page/spec/features/my/time_entries_current_user_spec.rb
+++ b/modules/my_page/spec/features/my/time_entries_current_user_spec.rb
@@ -207,7 +207,7 @@ describe 'My page time entries current user widget spec', type: :feature, js: tr
sleep(0.1)
- time_logging_modal.perform_action 'Create'
+ time_logging_modal.perform_action 'Save'
time_logging_modal.is_visible false
my_page.expect_and_dismiss_toaster message: I18n.t(:notice_successful_create)
diff --git a/spec/features/work_packages/display_fields/spent_time_display_spec.rb b/spec/features/work_packages/display_fields/spent_time_display_spec.rb
index 058f1e2bee2..e625a07221a 100644
--- a/spec/features/work_packages/display_fields/spent_time_display_spec.rb
+++ b/spec/features/work_packages/display_fields/spent_time_display_spec.rb
@@ -59,7 +59,7 @@ describe 'Logging time within the work package view', type: :feature, js: true d
end
# a click on save creates a time entry
- time_logging_modal.perform_action I18n.t('js.label_create')
+ time_logging_modal.perform_action I18n.t(:button_save)
wp_page.expect_and_dismiss_toaster message: I18n.t('js.notice_successful_create')
end