mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-27 17:41:58 -06:00
Additional SSH Host Implementation
This commit is contained in:
@@ -35,6 +35,7 @@ import Login from "./Login.jsx";
|
||||
import SiteList from "./Sites/Site_List";
|
||||
import DeviceList from "./Devices/Device_List";
|
||||
import DeviceDetails from "./Devices/Device_Details";
|
||||
import SSHDevices from "./Devices/SSH_Devices.jsx";
|
||||
import AssemblyList from "./Assemblies/Assembly_List";
|
||||
import AssemblyEditor from "./Assemblies/Assembly_Editor";
|
||||
import ScheduledJobsList from "./Scheduling/Scheduled_Jobs_List";
|
||||
@@ -202,6 +203,14 @@ const LOCAL_STORAGE_KEY = "borealis_persistent_state";
|
||||
items.push({ label: "Automation", page: "jobs" });
|
||||
items.push({ label: "Community Content", page: "community" });
|
||||
break;
|
||||
case "devices":
|
||||
items.push({ label: "Inventory", page: "devices" });
|
||||
items.push({ label: "Devices", page: "devices" });
|
||||
break;
|
||||
case "ssh_devices":
|
||||
items.push({ label: "Inventory", page: "devices" });
|
||||
items.push({ label: "SSH Devices", page: "ssh_devices" });
|
||||
break;
|
||||
case "access_credentials":
|
||||
items.push({ label: "Access Management", page: "access_credentials" });
|
||||
items.push({ label: "Credentials", page: "access_credentials" });
|
||||
@@ -556,7 +565,7 @@ const LOCAL_STORAGE_KEY = "borealis_persistent_state";
|
||||
const isAdmin = (String(userRole || '').toLowerCase() === 'admin');
|
||||
|
||||
useEffect(() => {
|
||||
if (!isAdmin && (currentPage === 'server_info' || currentPage === 'access_credentials' || currentPage === 'access_users')) {
|
||||
if (!isAdmin && (currentPage === 'server_info' || currentPage === 'access_credentials' || currentPage === 'access_users' || currentPage === 'ssh_devices')) {
|
||||
setNotAuthorizedOpen(true);
|
||||
setCurrentPage('devices');
|
||||
}
|
||||
@@ -584,6 +593,8 @@ const LOCAL_STORAGE_KEY = "borealis_persistent_state";
|
||||
}}
|
||||
/>
|
||||
);
|
||||
case "ssh_devices":
|
||||
return <SSHDevices />;
|
||||
|
||||
case "device_details":
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user