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
[37262] Fix modal header icons (#9285)
Oliver Günthercac2bf8716d3
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rbindex 066b0cc6954..0eece3718d4 100644--- a/app/helpers/users_helper.rb+++ b/app/helpers/users_helper.rb@@ -99,12 +99,6 @@ module UsersHelperresultend- ##- # Returns the user avatar or a default image- def user_avatar_icon- op_icon('op-icon icon-context icon-user')- end-def change_user_status_buttons(user)build_change_user_status_action(user) do |title, name|submit_tag(title, name: name, class: 'button')diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erbindex e6705c8226e..8f007d7f136 100644--- a/app/views/layouts/base.html.erb+++ b/app/views/layouts/base.html.erb@@ -169,7 +169,7 @@ See docs/COPYRIGHT.rdoc for more details.<% if show_onboarding_modal? %><section data-augmented-model-wrapperdata-modal-initialize-now="true"- data-modal-class-name="onboarding-modal -highlight">+ data-modal-class-name="onboarding-modal op-modal_autoheight -highlight"><%= render partial: '/onboarding/configuration_modal' %></section><% end %>diff --git a/app/views/onboarding/_configuration_modal.html.erb b/app/views/onboarding/_configuration_modal.html.erbindex 362403e2a8f..de534b1c695 100644--- a/app/views/onboarding/_configuration_modal.html.erb+++ b/app/views/onboarding/_configuration_modal.html.erb@@ -30,7 +30,7 @@ See docs/COPYRIGHT.rdoc for more details.<div class="modal-delivery-element"><%= labelled_tabular_form_for current_user, url: { action: 'user_settings', controller: 'onboarding' }, html: { id: 'user-form' } do |f| %><div class="op-modal--header op-modal--header_highlight">- <%= user_avatar_icon %>+ <%= avatar(current_user) %><h1 class="op-modal--title"><%= I18n.t('onboarding.welcome') %>, <%= current_user.name %></h1>diff --git a/app/views/onboarding/_menu_item.html.erb b/app/views/onboarding/_menu_item.html.erbindex ac1d2691ea8..cba211e3c90 100644--- a/app/views/onboarding/_menu_item.html.erb+++ b/app/views/onboarding/_menu_item.html.erb@@ -30,7 +30,7 @@ See docs/COPYRIGHT.rdoc for more details.class="op-menu--item"data-augmented-model-wrapperdata-modal-iframe-url="<%= OpenProject::Configuration.onboarding_video_url %>"- data-modal-class-name="onboarding-modal -highlight"+ data-modal-class-name="onboarding-modal op-modal_autoheight -highlight"><%= link_to t(:label_introduction_video),'',diff --git a/frontend/src/app/modules/modal/modal-header.component.html b/frontend/src/app/modules/modal/modal-header.component.htmlindex 95b120ea851..532cd3e938f 100644--- a/frontend/src/app/modules/modal/modal-header.component.html+++ b/frontend/src/app/modules/modal/modal-header.component.html@@ -1,6 +1,6 @@<op-icon*ngIf="icon"- [icon-classes]="icon"+ icon-classes="{{ icon }} icon-context"></op-icon><h1 class="op-modal--title"><ng-content></ng-content>diff --git a/frontend/src/app/modules/modal/modal.sass b/frontend/src/app/modules/modal/modal.sassindex 3090d41e025..cccb8c1adb3 100644--- a/frontend/src/app/modules/modal/modal.sass+++ b/frontend/src/app/modules/modal/modal.sass@@ -32,9 +32,10 @@&--headerdisplay: flex- padding: var(--modal-padding) var(--modal-padding) calc(0.5 * var(--modal-padding)) var(--modal-padding)+ padding: calc(0.5 * var(--modal-padding)) var(--modal-padding) calc(0.5 * var(--modal-padding)) var(--modal-padding)position: relativeborder-bottom: 1px solid #eee+ align-items: center&_highlightbackground-color: var(--header-bg-color)@@ -44,14 +45,6 @@*color: var(--header-item-font-color)- .op-icon- height: 100%- width: 3rem- padding: 0.45rem 0- display: flex- justify-content: center- align-items: center-&--bodydisplay: flexflex-direction: columndiff --git a/frontend/src/app/modules/time_entries/shared/modal/base.modal.html b/frontend/src/app/modules/time_entries/shared/modal/base.modal.htmlindex 2fe70cffc99..215fbb5f717 100644--- a/frontend/src/app/modules/time_entries/shared/modal/base.modal.html+++ b/frontend/src/app/modules/time_entries/shared/modal/base.modal.html@@ -2,7 +2,11 @@class="op-modal op-modal_autoheight loading-indicator--location"data-indicator-name="modal">- <op-modal-header (close)="closeMe($event)">{{text.title}}</op-modal-header>+ <op-modal-header+ icon="icon-log_time"+ (close)="closeMe($event)">+ {{text.title}}+ </op-modal-header><div class="ngdialog-body op-modal--body"><te-form #editForm