-
Notifications
You must be signed in to change notification settings - Fork 159
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 highlighting of the currently selected language #8972
Conversation
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.
🤩
Kudos, SonarCloud Quality Gate passed! |
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.
Not too happy with the settings related interface names. Why Account
? 🤔
boolValue?: Record<string, any> | ||
} | ||
|
||
export interface AccountBundle { |
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.
export interface AccountBundle { | |
export interface SettingsBundle { |
} | ||
} | ||
|
||
export interface AccountBundleSetting { |
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.
export interface AccountBundleSetting { | |
export interface Setting { |
@@ -0,0 +1,53 @@ | |||
export interface SettingValue { |
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.
export interface SettingValue { | |
export interface SettingsValue { |
const selectedLanguageValue = ref() | ||
const disableEmailNotificationsValue = ref() | ||
const valuesList = ref<SettingValue[]>() | ||
const bundlesList = ref<AccountBundle>() |
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.
Why is the bundles list not of type ref<AccountBundle[]>
? 🤔
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.
Because bundlesList
is actually not a list of bundles but the account bundle. Let my fix that name in a follow-up, just like the new interface names :)
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.
thank you 💪
Description
Fixes a regression due to the refactoring in #8911. Also adds proper types for the settings stuff.
Related Issue
Screenshots:
Types of changes