-
Notifications
You must be signed in to change notification settings - Fork 91
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
BZ#1501098 Fix for Service UI not taking default language #1375
Conversation
Also migrated away from using a language selector directive to a component
This PR is accomplishing a handful of things.
Here is how the language selection order of precedence works. |
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.
Minor feedback, overall looks great, any chance we can get a gif of it in action?
client/app/layouts/_application.sass
Outdated
@@ -85,3 +86,22 @@ li | |||
height: 38px | |||
margin-top: 10px | |||
width: 320px | |||
|
|||
.language-switcher |
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.
Waddya think about poppin' this sass in _language-switcher.sass?
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.
Was able after a bit of work to get the css under language-switcher.sass
client/app/core/core.module.js
Outdated
@@ -22,7 +22,7 @@ import { DialogFieldRefreshFactory } from './dialog-field-refresh.service.js' | |||
import { EventNotificationsFactory } from './event-notifications.service.js' | |||
import { ExceptionModule } from './exception/exception.module.js' | |||
import { LanguageFactory } from './language.service.js' | |||
import { LanguageSwitcherDirective } from './language-switcher/language-switcher.directive.js' | |||
import { LanguageSwitcherComponent } from './language-switcher/language-switcher.component.js' |
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.
Thoughts on moving this to ./app/components
?
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.
I thought we were going to get rid of that folder, how about /app/shared ?
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.
OOoooo Shared kinda makes sense... it is after all used in two distinct places, login.html and application.html (one is a state the latter a layout)
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.
moved the component to /app/shared
Also changed where css is declared for the component
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.
Checked commits https://github.com/chalettu/manageiq-ui-service/compare/e8beec6ea6e9c679a384741b688d4c2258ba2376~...932b4e2b4c7ac99ab9381a94e32b36ad70d9d6d5 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
|
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.
Looks good @chalettu thanks for the quick turn around on feedback <3
Second BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1672324 Will take care of the conflict... |
Created #1526 for gaprindashvili |
@miq-bot add_label bug
@miq-bot add_label gaprindashvili/yes
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1501098