diff --git a/resources/scripts/components/admin/mounts/MountsContainer.tsx b/resources/scripts/components/admin/mounts/MountsContainer.tsx index 10f95f03e..87240a6e9 100644 --- a/resources/scripts/components/admin/mounts/MountsContainer.tsx +++ b/resources/scripts/components/admin/mounts/MountsContainer.tsx @@ -1,4 +1,3 @@ -import CopyOnClick from '@/components/elements/CopyOnClick'; import React, { useContext, useEffect, useState } from 'react'; import getMounts, { Context as MountsContext } from '@/api/admin/mounts/getMounts'; import FlashMessageRender from '@/components/FlashMessageRender'; @@ -10,6 +9,7 @@ import AdminContentBlock from '@/components/admin/AdminContentBlock'; import AdminCheckbox from '@/components/admin/AdminCheckbox'; import AdminTable, { TableBody, TableHead, TableHeader, TableRow, Pagination, Loading, NoItems, ContentWrapper } from '@/components/admin/AdminTable'; import Button from '@/components/elements/Button'; +import CopyOnClick from '@/components/elements/CopyOnClick'; const RowCheckbox = ({ id }: { id: number}) => { const isChecked = AdminContext.useStoreState(state => state.mounts.selectedMounts.indexOf(id) >= 0); diff --git a/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx b/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx index 0ac16c096..5c4c35d23 100644 --- a/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx +++ b/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx @@ -18,6 +18,10 @@ interface Values { description: string; locationId: number; fqdn: string; + listenPort: number; + publicPort: number; + listenPortSFTP: number; + publicPortSFTP: number; } export default () => { @@ -53,6 +57,10 @@ export default () => { description: node.description || '', locationId: node.locationId, fqdn: node.fqdn, + listenPort: node.daemonListen, + publicPort: node.daemonListen, + listenPortSFTP: node.daemonSftp, + publicPortSFTP: node.daemonSftp, }} validationSchema={object().shape({ name: string().required().max(191), @@ -97,6 +105,46 @@ export default () => { /> +