V8 - umb-box-header shows values for non-localized and localized title and description #6689
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
When using the umb-box-header directive you can set a title attribute and a title-key attribute. When both are filled both values are shown. I would expect the value of the localized title-key to be shown when filled. And the title property only when the title-key is not provided or can not be localized.
Same goes for description and description-key
Steps to reproduce
Copy and paste the following code above the umb-box-content directive in /src/Umbraco.Web.UI.Client/src/views/dashboard/settings/settingsdashboardintro.html file.
Build the front end run your umbraco site. If login and go to the settings section you will see the following in the Welcome dashboard
You can see that both the value from the title and description attribute are shown. But also the translated values for the keys passed in to title-key and description-key
With this PR only the values of the title-key and description-key are shown when the can be localized.