mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
feat: redirect to dashboard when document is sent
This commit is contained in:
committed by
Mythie
parent
f64885d2c3
commit
2aabe7ec60
@ -130,7 +130,13 @@ export const EditDocumentForm = ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
router.refresh();
|
toast({
|
||||||
|
title: 'Document sent',
|
||||||
|
description: 'Your document has been sent successfully.',
|
||||||
|
duration: 5000,
|
||||||
|
});
|
||||||
|
|
||||||
|
router.push('/dashboard');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,9 @@ export const documentRouter = router({
|
|||||||
try {
|
try {
|
||||||
const { documentId, recipients } = input;
|
const { documentId, recipients } = input;
|
||||||
|
|
||||||
|
console.log('documentId', documentId);
|
||||||
|
console.log('recipients', recipients);
|
||||||
|
|
||||||
return await setRecipientsForDocument({
|
return await setRecipientsForDocument({
|
||||||
userId: ctx.user.id,
|
userId: ctx.user.id,
|
||||||
documentId,
|
documentId,
|
||||||
|
|||||||
Reference in New Issue
Block a user