-
Notifications
You must be signed in to change notification settings - Fork 174
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
Configurable logo and title #160
Configurable logo and title #160
Conversation
…le as separate component
…ble-logo-title # Conflicts: # core/examples/luigi-sample-angular/src/app/project/project.component.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality working as expected, well done! I also like a lot that you created navigation
folder and put related files there together.
I suggested some refactorings and cleanups that IMHO are important to keep good code quality.
…s/luigi into feature/configurable-logo-title
@@ -23,7 +23,9 @@ export const processHeaderSettings = component => { | |||
|
|||
// Set Favicon | |||
if (header.favicon) { | |||
const isInvalidIcoFile = !header.favicon.split('?')[0].endsWith('.ico'); | |||
const isInvalidIcoFile = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the variable to e.g. isInvalidFormat or isInvalidFaviconFormat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor comments.
docs/general-settings.md
Outdated
**header.logo** defines the top left navigation logo. It has a fixed height of 28px. | ||
**header.title** defines the top left navigation title. | ||
**header.favicon** defines the favicon. Requires a standard favicon file with .ico file ending and 16x16px or 32x32px dimensions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires a standard favicon file with the `.ico` extension, and 16x16px or 32x32px dimensions.
I would go with extension
rather than file ending
docs/general-settings.md
Outdated
**backdropDisabled** prevents the backdrop layer from covering the top and left navigation when showing modal windows, when set to `true`. By default, the backdrop is enabled and covers the top and left navigation when showing modal windows. To keep the default configuration, set the value to `false` or leave this option unconfigured. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When set to `true`, prevents the backdrop layer from covering the top and left navigation when showing modal windows.`
Last changes look good to me. Can be merged from my point of view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
…onfigurable-logo-title
* added asynchronous config for settings.header to specify logo, title and favicon * refactored navigation stuff to separate folder, excluded logo and title as separate component * added Promise testcase * hide logo container if there is no logo * fixed tests and added assertions for logo and title * adjusted left header spacing for title only * added docu for configurable logo and title * added support for data:image favicons
Added config setting for title, logo and favicon (only .ico files allowed).
Resolves #139