From c798c1c2ebc3c1a7ac4b826edea419e54d4ccb3a Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 13 Feb 2024 15:13:25 +0100 Subject: [PATCH] AB#15426 --- .../PublicationVersions/PublicationVersions.tsx | 10 +++------- src/config/notifications.ts | 5 ----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index bf48f2cf..416cefed 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -10,7 +10,6 @@ import { import { Publication, PublicationBillShort } from '@/api/fetchers.schemas' import useModalStore from '@/store/modalStore' import downloadFile from '@/utils/downloadFile' -import { toastNotification } from '@/utils/toastNotification' interface PublicationVersionsProps { publication: Publication @@ -93,13 +92,10 @@ const VersionRow = ({ }: { moduleId?: string Module_Status_ID: number - }) => { - toastNotification('downloadStarted') - - return downloadFile( + }) => + downloadFile( `modules/${moduleId}/diff?output_format=doc&status_id=${Module_Status_ID}` ) - } const { isFetching, refetch: download } = useQuery({ queryKey: ['downloadDiff', moduleId, Module_Status_ID, UUID], @@ -130,7 +126,7 @@ const VersionRow = ({
diff --git a/src/config/notifications.ts b/src/config/notifications.ts index ca04b88e..ffb96c02 100644 --- a/src/config/notifications.ts +++ b/src/config/notifications.ts @@ -20,7 +20,6 @@ export type ToastType = | 'userActivated' | 'userDeactivated' | 'userPasswordGenerated' - | 'downloadStarted' type MessageType = 'default' | 'success' | 'error' | 'warning' | 'info' @@ -109,8 +108,4 @@ export const notifications: Record< message: 'Het nieuwe wachtwoord voor de gebruiker is opgeslagen', type: 'success', }, - downloadStarted: { - message: 'De download wordt gegenereerd, dit kan even duren', - type: 'info', - }, }