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

Replace toPromise().then with subscribe

Oliver Günther6c30e021816f
diff --git a/frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts b/frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
index f97edb68885..eaefee0af01 100644
--- a/frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
+++ b/frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
@@ -111,8 +111,7 @@ export class BoardsToolbarMenuDirective extends OpContextMenuTrigger {
`/boards/${this.board.id}`,
{ responseType: 'json' },
)
- .toPromise()
- .then(
+ .subscribe(
(response:{ redirect_url:string }) => {
window.location.href = response.redirect_url;
},