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
Merge branch 'dev' into fix/40014-create-team-planner-rights-check
Benjamin Bädorffd0cf99f0bde
diff --cc frontend/src/app/shared/components/op-view-select/op-view-select.component.tsindex 68466a9420c,080ccec6554..12df6454b1d--- 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,26 -183,25 +187,30 @@@ export class ViewSelectComponent extend);}- this.viewsService- .fetchViews(params)+ combineLatest(+ this.viewsService.fetchViews(params),+ this.currentUserService.hasCapabilities$(+ 'team_planners/create',+ this.currentProjectService.id || undefined,+ ),+ ).pipe(this.untilDestroyed())- .subscribe((queryCollection) => {+ .subscribe(([queryCollection, canAddTeamPlanners]) => {- 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);