Skip to content
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

IBX-1109: Aligned views with groupable user settings #137

Merged
merged 9 commits into from
Dec 23, 2021

Conversation

ViniTou
Copy link
Contributor

@ViniTou ViniTou commented Dec 22, 2021

Question Answer
Tickets IBX-1109
Bug fix? no
New feature? yes
BC breaks? no
Tests pass? yes
Doc needed? yes
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@ViniTou ViniTou requested a review from a team December 23, 2021 10:44
@dew326 dew326 self-assigned this Dec 23, 2021
@konradoboza konradoboza requested a review from a team December 23, 2021 12:34
Comment on lines +48 to +52
{% for user_setting in settings_group.settings %}
{% set items = items|merge([{
label: user_setting.description,
content: value_definitions[user_setting.identifier].getDisplayValue(user_setting.value)
}]) %}
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: map can be used here

{% set items = settings_group.settings|map((user_setting) => {
    label: user_setting.description,
    content: value_definitions[user_setting.identifier].getDisplayValue(user_setting.value)
}) %}

@ViniTou ViniTou merged commit 69484de into main Dec 23, 2021
@ViniTou ViniTou deleted the ibx-1109-grouped-user-settings branch December 23, 2021 13:58
@DominikaK DominikaK added Doc needed The changes require some documentation and removed Doc needed The changes require some documentation labels Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants