X Tutup
Skip to content

Fix a regression with theming of settings menu icons #38246

Merged
phil-davis merged 1 commit intomasterfrom
bugfix/e4337
Dec 23, 2020
Merged

Fix a regression with theming of settings menu icons #38246
phil-davis merged 1 commit intomasterfrom
bugfix/e4337

Conversation

@VicDeo
Copy link
Member

@VicDeo VicDeo commented Dec 22, 2020

Description

Firstly URLGenerator is instantiated when user session is loaded and the theme is not available yet on this stage.
So an empty theme is cached into the URLGenerator instance for a while.
Partially reverts #37867

Related Issue

Motivation and Context

Fixes resolution of images added into the settings navigation by app-themes

How Has This Been Tested?

  1. Enable any app-theme.
  2. Override users icon in the top right menu in your app-theme (settings/img/users.svg)

Expected

users.svg from theme is loaded

Actual

users.svg from core is loaded.

Screenshot_20201222_182622

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@VicDeo VicDeo self-assigned this Dec 22, 2020
@update-docs
Copy link

update-docs bot commented Dec 22, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@VicDeo VicDeo mentioned this pull request Dec 22, 2020
11 tasks
@micbar
Copy link
Contributor

micbar commented Dec 22, 2020

@VicDeo Cool! Can you add a changelog?

Fix looks good.

@VicDeo
Copy link
Member Author

VicDeo commented Dec 22, 2020

@micbar added

@phil-davis phil-davis requested a review from micbar December 22, 2020 15:53
@@ -0,0 +1,6 @@
Bugfix: Fix a regression with theming of settings menu icons

Default icons were loaded into the settings menu instead of icons
Copy link
Contributor

@micbar micbar Dec 22, 2020

Choose a reason for hiding this comment

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

Suggested change
Default icons were loaded into the settings menu instead of icons
Default icons were loaded instead of the overrides

Copy link
Contributor

@micbar micbar left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup