OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Sort team planner menu items alphabetically
Benjamin Bädorfd9cfacfbcc18
diff --git a/frontend/src/app/shared/components/op-view-select/op-view-select.component.ts b/frontend/src/app/shared/components/op-view-select/op-view-select.component.tsindex ec45d5a5ff7..080ccec6554 100644--- a/frontend/src/app/shared/components/op-view-select/op-view-select.component.ts+++ b/frontend/src/app/shared/components/op-view-select/op-view-select.component.ts@@ -187,17 +187,21 @@ export class ViewSelectComponent extends UntilDestroyedMixin implements OnInit {.fetchViews(params).pipe(this.untilDestroyed()).subscribe((queryCollection) => {- queryCollection._embedded.elements.forEach((view) => {- let cat = 'private';- if (view.public) {- cat = 'public';- }- if (view.starred) {- cat = 'starred';- }-- categories[cat].push(this.toOpSideMenuItem(view));- });+ queryCollection+ ._embedded+ .elements+ .sort((a, b) => a._links.query.title.localeCompare(b._links.query.title))+ .forEach((view) => {+ let cat = 'private';+ if (view.public) {+ cat = 'public';+ }+ if (view.starred) {+ cat = 'starred';+ }++ categories[cat].push(this.toOpSideMenuItem(view));+ });const staticQueries = this.opStaticQueries.getStaticQueriesForView(this.viewType);const newQueryLink = this.opStaticQueries.getCreateNewQueryForView(this.viewType);