Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a duplicated header for inbox message #3955

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

mayorova
Copy link
Contributor

What this PR does / why we need it:

This is a tiny fix that removes the double title.

Before:
Screenshot from 2024-12-18 15-22-20

After:

Screenshot from 2024-12-18 15-24-26

Which issue(s) this PR fixes

none

Verification steps

Special notes for your reviewer:

@@ -1,5 +1,3 @@
<% content_for :page_header_title, 'Message' %>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have the same exact line inside the provider/admin/messages/message template.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So should it be removed from the template and ensure that it is always there by having it here? Just asking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provider/admin/messages/message partial is used in 2 other templates, so I guess it's better having it three to avoid duplication.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the opposite - remove from templates and keep in the partial (here). But either way, do as you feel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we are understsanding each other 😬

So there is a partial with the header included

<% content_for :page_header_title, 'Message' %>
and it is used in:
<%= render 'provider/admin/messages/message', :message => @message %>

<%= render 'provider/admin/messages/message', :message => @message %>

<%= render 'provider/admin/messages/message', :message => @message %>

In addition, porta/app/views/provider/admin/messages/inbox/show.html.erb had its own <% content_for :page_header_title, 'Message' %> which was causing a duplication, and I removed that one.

@mayorova mayorova merged commit 696de68 into master Dec 19, 2024
17 of 21 checks passed
@mayorova mayorova deleted the fix-message-details-title branch December 19, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants