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',
|
||||
duration: 5000,
|
||||
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"
|
||||
variant="secondary"
|
||||
className="flex-1"
|
||||
onClick={(prev) => setIsOpen(!prev)}
|
||||
onClick={() => setIsOpen(false)}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
@ -134,6 +134,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
|
||||
) : (
|
||||
<div></div>
|
||||
)}
|
||||
|
||||
{!tokens && isTokensLoading ? (
|
||||
<div className="absolute inset-0 flex items-center justify-center bg-white/50">
|
||||
<Loader className="h-8 w-8 animate-spin text-gray-500" />
|
||||
@ -171,6 +172,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
{newlyCreatedToken.token && showNewToken && (
|
||||
<div className="border-primary mb-8 break-words rounded-sm border p-4">
|
||||
<p className="text-muted-foreground mt-2 text-sm italic">
|
||||
@ -187,6 +189,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<h2 className="text-xl">Create a new token</h2>
|
||||
<p className="text-muted-foreground mt-2 text-sm italic">
|
||||
Enter a representative name for your new token.
|
||||
|
||||
@ -18,8 +18,6 @@ export const fieldRouter = router({
|
||||
try {
|
||||
const { documentId, fields } = input;
|
||||
|
||||
console.log('fields', fields);
|
||||
|
||||
return await setFieldsForDocument({
|
||||
documentId,
|
||||
userId: ctx.user.id,
|
||||
|
||||
Reference in New Issue
Block a user