mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
chore: finishing touches
This commit is contained in:
@ -88,7 +88,7 @@ export default function DeleteTokenDialog({
|
|||||||
variant: 'destructive',
|
variant: 'destructive',
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
description:
|
description:
|
||||||
'We encountered an unknown error while attempting to delete this team. Please try again later.',
|
'We encountered an unknown error while attempting to delete this token. Please try again later.',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -151,7 +151,7 @@ export default function DeleteTokenDialog({
|
|||||||
type="button"
|
type="button"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
onClick={(prev) => setIsOpen(!prev)}
|
onClick={() => setIsOpen(false)}
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -134,6 +134,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
|
|||||||
) : (
|
) : (
|
||||||
<div></div>
|
<div></div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!tokens && isTokensLoading ? (
|
{!tokens && isTokensLoading ? (
|
||||||
<div className="absolute inset-0 flex items-center justify-center bg-white/50">
|
<div className="absolute inset-0 flex items-center justify-center bg-white/50">
|
||||||
<Loader className="h-8 w-8 animate-spin text-gray-500" />
|
<Loader className="h-8 w-8 animate-spin text-gray-500" />
|
||||||
@ -171,6 +172,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{newlyCreatedToken.token && showNewToken && (
|
{newlyCreatedToken.token && showNewToken && (
|
||||||
<div className="border-primary mb-8 break-words rounded-sm border p-4">
|
<div className="border-primary mb-8 break-words rounded-sm border p-4">
|
||||||
<p className="text-muted-foreground mt-2 text-sm italic">
|
<p className="text-muted-foreground mt-2 text-sm italic">
|
||||||
@ -187,6 +189,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<h2 className="text-xl">Create a new token</h2>
|
<h2 className="text-xl">Create a new token</h2>
|
||||||
<p className="text-muted-foreground mt-2 text-sm italic">
|
<p className="text-muted-foreground mt-2 text-sm italic">
|
||||||
Enter a representative name for your new token.
|
Enter a representative name for your new token.
|
||||||
|
|||||||
@ -18,8 +18,6 @@ export const fieldRouter = router({
|
|||||||
try {
|
try {
|
||||||
const { documentId, fields } = input;
|
const { documentId, fields } = input;
|
||||||
|
|
||||||
console.log('fields', fields);
|
|
||||||
|
|
||||||
return await setFieldsForDocument({
|
return await setFieldsForDocument({
|
||||||
documentId,
|
documentId,
|
||||||
userId: ctx.user.id,
|
userId: ctx.user.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user