-
Notifications
You must be signed in to change notification settings - Fork 155
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
Move theme switcher to account settings #10334
The head ref may contain hidden characters: "move\u2212theme\u2212switcher\u2212account\u2212settings"
Conversation
689fdb2
to
4686fc6
Compare
cfc2ae3
to
74890b7
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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 move this file away from the Topbar
folder when it's not part of the topbar anymore.
const onUpdateTheme = () => { | ||
showMessage({ title: $gettext('Preference saved.') }) | ||
} |
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 handle this here via events? I'd expect the ThemeSwitcher
to handle the message 😅
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 would you expect that?
The ThemeSwitcher doesn't know anything about the context. In that case we would expect a message like "Theme saved" or something like this.
But for account.vue we don't want to go too much into detail with the success message
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 it seems unnecessarily complicated to me 🤷 It's not that we're updating data or something in the parent component which would justify that. I'd rather have all theme-logic decoupled in the ThemeSwitcher component (same like e.g. the GDPRExport component handles all gdpr related stuff).
Description
See #10181
Related Issue
Types of changes
Open tasks: