update: save and exit buttons are outside the scrollarea in manAssReq and manAspect
This commit is contained in:
parent
830ea9f635
commit
28c314a8ba
|
|
@ -189,8 +189,8 @@ export default function AspectFormModal() {
|
|||
</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
|
||||
<ScrollArea className="h-[300px] p-4">
|
||||
<form onSubmit={handleSubmit}>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<ScrollArea className="h-[300px] p-4">
|
||||
<div className="grid gap-4">
|
||||
<div className="mb-4">
|
||||
<Label htmlFor="name" className="block text-left mb-1">Nama Aspek</Label>
|
||||
|
|
@ -266,16 +266,17 @@ export default function AspectFormModal() {
|
|||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel disabled={isSubmitting}>Tutup</AlertDialogCancel>
|
||||
{formType !== "detail" && (
|
||||
<Button type="submit" disabled={isSubmitting}>
|
||||
{isSubmitting ? "Menyimpan..." : modalTitle}
|
||||
</Button>
|
||||
)}
|
||||
</AlertDialogFooter>
|
||||
</form>
|
||||
</ScrollArea>
|
||||
</ScrollArea>
|
||||
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel disabled={isSubmitting}>Tutup</AlertDialogCancel>
|
||||
{formType !== "detail" && (
|
||||
<Button type="submit" disabled={isSubmitting}>
|
||||
{isSubmitting ? "Menyimpan..." : modalTitle}
|
||||
</Button>
|
||||
)}
|
||||
</AlertDialogFooter>
|
||||
</form>
|
||||
</AlertDialogContent>
|
||||
</AlertDialog>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -198,37 +198,37 @@ export default function AssessmentRequestManagementFormModal({
|
|||
],
|
||||
})}
|
||||
|
||||
<div className="flex justify-end gap-4 mt-4">
|
||||
<Button
|
||||
onClick={onClose}
|
||||
variant="outline"
|
||||
disabled={mutation.isPending}
|
||||
className="min-w-20"
|
||||
>
|
||||
Tutup
|
||||
</Button>
|
||||
{status !== "selesai" && (
|
||||
<>
|
||||
<Button
|
||||
onClick={() => handleStatusChange("ditolak")}
|
||||
variant="destructive"
|
||||
disabled={mutation.isPending}
|
||||
className="min-w-20"
|
||||
>
|
||||
Tolak
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => handleStatusChange("diterima")}
|
||||
variant="default"
|
||||
disabled={mutation.isPending}
|
||||
className="min-w-20"
|
||||
>
|
||||
Terima
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</ScrollArea>
|
||||
<div className="flex justify-end gap-4 mt-4">
|
||||
<Button
|
||||
onClick={onClose}
|
||||
variant="outline"
|
||||
disabled={mutation.isPending}
|
||||
className="min-w-20"
|
||||
>
|
||||
Tutup
|
||||
</Button>
|
||||
{status !== "selesai" && (
|
||||
<>
|
||||
<Button
|
||||
onClick={() => handleStatusChange("ditolak")}
|
||||
variant="destructive"
|
||||
disabled={mutation.isPending}
|
||||
className="min-w-20"
|
||||
>
|
||||
Tolak
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => handleStatusChange("diterima")}
|
||||
variant="default"
|
||||
disabled={mutation.isPending}
|
||||
className="min-w-20"
|
||||
>
|
||||
Terima
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</DialogDescription>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user