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

Sorts spaces alphabetically in the user interface #36

Merged
merged 1 commit into from
May 17, 2021

Conversation

StCyr
Copy link
Collaborator

@StCyr StCyr commented May 11, 2021

Signed-off-by: Cyrille Bollu cyr.debian@bollu.be

Signed-off-by: Cyrille Bollu <cyr.debian@bollu.be>
@StCyr StCyr requested a review from zak39 May 11, 2021 09:39
@StCyr StCyr self-assigned this May 11, 2021
@StCyr StCyr added this to the Sprint 7 milestone May 12, 2021
@StCyr StCyr added Demo client frontend Modification related to frontend labels May 12, 2021
Comment on lines +87 to +93
sortedSpaces() {
const sortedSpaces = {}
Object.keys(this.$root.$data.spaces).sort().forEach((value, index) => {
sortedSpaces[value] = this.$root.$data.spaces[value]
})
return sortedSpaces
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like it ! :)

It's a good idea to use sort() method and then foreach() method :)

@zak39
Copy link
Collaborator

zak39 commented May 17, 2021

Can I accepte this PR now ? Or Should I wait another PR accepted ?

@StCyr
Copy link
Collaborator Author

StCyr commented May 17, 2021

Can I accepte this PR now ? Or Should I wait another PR accepted ?

Sure you may accept it :-)

@zak39 zak39 merged commit 6badb6e into main May 17, 2021
@StCyr StCyr deleted the enhancement/sort-workspaces-alphabetically branch May 25, 2021 13:28
@LivOriona LivOriona mentioned this pull request Jun 10, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Modification related to frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants