Files
factorio-clusterio/packages/web_ui/src/components/ControllerPage.jsx
T
Hornwitser 70ad295a89 Rename Master to Controller
The role of the master server as the party controlling every part of the
cluster is not well reflected in its name and has caused confusion among
users on several occasions.  Rename master to controller to better
reflects its role.
2023-02-22 15:30:51 +01:00

26 lines
771 B
React

import React from "react";
import { Typography } from "antd";
import PluginExtra from "./PluginExtra";
import LogConsole from "./LogConsole";
import { useAccount } from "../model/account";
import ControllerConfigTree from "./ControllerConfigTree";
import PageLayout from "./PageLayout";
const { Title } = Typography;
export default function ControllerPage() {
let account = useAccount();
return <PageLayout nav={[{ name: "Controller" }]}>
<h2>Controller</h2>
{account.hasPermission("core.log.follow") && <>
<Title level={5} style={{ marginTop: 16 }}>Console</Title>
<LogConsole controller={true} />
</>}
{account.hasPermission("core.controller.get_config") && <ControllerConfigTree />}
<PluginExtra component="ControllerPage" />
</PageLayout>;
};