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 action bar from share modal, as there is already a close icon on the top

Henriette Darge18ca6de0a9e4
diff --git a/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.html b/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.html
index 3a2d71ac8d7..bc137f15c5f 100644
--- a/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.html
+++ b/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.html
@@ -13,6 +13,7 @@
class="button button_no-margin -transparent spot-modal--header-close-button"
[attr.aria-label]="text.button_close"
(click)="closeMe($event)"
+ data-test-selector="op-share-wp-modal--close-icon"
>
<svg
x-icon
@@ -34,15 +35,4 @@
</op-content-loader>
</turbo-frame>
</div>
- <div class="spot-action-bar">
- <div class="spot-action-bar--right">
- <button
- class="button button_no-margin spot-modal--cancel-button spot-action-bar--action"
- data-test-selector="confirmation-modal--cancel"
- (click)="closeMe($event)"
- [textContent]="text.button_close"
- [attr.title]="text.button_close"
- ></button>
- </div>
- </div>
</div>
diff --git a/spec/support/components/work_packages/share_modal.rb b/spec/support/components/work_packages/share_modal.rb
index 9ca54a2ce03..a17bbef4aee 100644
--- a/spec/support/components/work_packages/share_modal.rb
+++ b/spec/support/components/work_packages/share_modal.rb
@@ -269,7 +269,7 @@ module Components
def close
within_modal do
- click_button 'Close'
+ page.find("[data-test-selector='op-share-wp-modal--close-icon']").click
end
end