mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 10:46:38 +00:00
refactor sites settings general form
This commit is contained in:
@@ -133,6 +133,9 @@ export default function CreateSiteForm({ open, setOpen }: CreateSiteFormProps) {
|
||||
const niceId = res.data.data.niceId;
|
||||
// navigate to the site page
|
||||
router.push(`/${orgId}/settings/sites/${niceId}`);
|
||||
|
||||
// close the modal
|
||||
setOpen(false);
|
||||
}
|
||||
|
||||
setLoading(false);
|
||||
@@ -258,6 +261,11 @@ sh get-docker.sh`;
|
||||
)}
|
||||
</div>
|
||||
|
||||
<span className="text-sm text-muted-foreground mt-2">
|
||||
You will only be able to see the
|
||||
configuration once.
|
||||
</span>
|
||||
|
||||
<div className="flex items-center space-x-2">
|
||||
<Checkbox
|
||||
id="terms"
|
||||
|
||||
@@ -141,7 +141,6 @@ export default function SitesTable({ sites, orgId }: SitesTableProps) {
|
||||
columns={columns}
|
||||
data={sites}
|
||||
addSite={() => {
|
||||
// router.push(`/${orgId}/settings/sites/create`);
|
||||
setIsCreateModalOpen(true);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user