Skip to content

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

Fixed: Ordering widgets when a single board is requested (#8883)

Aleix Suauc517e3b2a136
diff --git a/frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts b/frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts
index 44036e60d09..d1345071db3 100644
--- a/frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts
+++ b/frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts
@@ -47,7 +47,13 @@ export class APIv3BoardPath extends CachableAPIV3Resource<Board> {
.id(this.id)
.get()
.pipe(
- map(grid => new Board(grid))
+ map(grid => {
+ const newBoard = new Board(grid);
+
+ newBoard.sortWidgets();
+
+ return newBoard;
+ })
);
}
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html b/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
index 4d329767b8b..d02d9341960 100644
--- a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
+++ b/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
@@ -20,7 +20,8 @@
cdkDragHandle></span>
<board-list [resource]="queryWidget"
[board]="board"
- (onRemove)="removeList(board, queryWidget)"></board-list>
+ (onRemove)="removeList(board, queryWidget)">
+ </board-list>
</div>
<div class="boards-list--add-item -no-text-select"