improved private resource modal

This commit is contained in:
miloschwartz
2025-12-18 16:13:15 -05:00
parent 56b0185c8f
commit 2479a3c53c
7 changed files with 1598 additions and 1233 deletions

View File

@@ -329,8 +329,11 @@ export default function ClientResourcesTable({
orgId={orgId}
sites={sites}
onSuccess={() => {
router.refresh();
setEditingResource(null);
// Delay refresh to allow modal to close smoothly
setTimeout(() => {
router.refresh();
setEditingResource(null);
}, 150);
}}
/>
)}
@@ -341,7 +344,10 @@ export default function ClientResourcesTable({
orgId={orgId}
sites={sites}
onSuccess={() => {
router.refresh();
// Delay refresh to allow modal to close smoothly
setTimeout(() => {
router.refresh();
}, 150);
}}
/>
</>