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

[#41944] fixed toast creation

Eric Schubert70763035fa70
diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfile
index 88060437fc1..394509b4ab0 100644
--- a/docker/dev/backend/Dockerfile
+++ b/docker/dev/backend/Dockerfile
@@ -7,7 +7,7 @@ ARG DEV_GID=1001
ENV USER=dev
ENV RAILS_ENV=development
-ENV BUNDLER_VERSION "2.0.2"
+ENV BUNDLER_VERSION "2.2.32"
# `--no-log-init` is required as a workaround to avoid disk exhaustion.
#
diff --git a/frontend/src/app/shared/components/toaster/toast.service.ts b/frontend/src/app/shared/components/toaster/toast.service.ts
index 475fa7b3f40..ddade3692db 100644
--- a/frontend/src/app/shared/components/toaster/toast.service.ts
+++ b/frontend/src/app/shared/components/toaster/toast.service.ts
@@ -161,8 +161,15 @@ export class ToastService {
this.stack.putValue([]);
}
- private createToast(message:IToast|string, type:ToastType):IToast {
- return (typeof message === 'string') ? { message, type } : { message: message.message, type };
+ private createToast(toast:IToast|string, type:ToastType):IToast {
+ return (typeof toast === 'string')
+ ? { message: toast, type }
+ : {
+ message: toast.message,
+ type,
+ link: toast.link,
+ data: toast.data,
+ };
}
private createAttachmentUploadToast(message:IToast|string, uploads:UploadInProgress[]) {