diff --git a/src/pages.tsx b/src/pages.tsx index c33edb1..db0c242 100644 --- a/src/pages.tsx +++ b/src/pages.tsx @@ -42,7 +42,6 @@ import { UserPassUserEdit } from "./ui/pages/Access/Auth/userpass/UserPassUserEd import { UserPassUserNew } from "./ui/pages/Access/Auth/userpass/UserPassUserNew"; import { UserPassUserView } from "./ui/pages/Access/Auth/userpass/UserPassUserView"; import { UserPassUsersList } from "./ui/pages/Access/Auth/userpass/UserPassUsersList"; -import { SSH_List } from "./ui/pages/Secrets/SSH/SSH_List"; export const Main = () => ( @@ -107,9 +106,6 @@ export const Main = () => ( api={api} /> - - - diff --git a/src/ui/pages/Secrets/SSH/SSH_List.tsx b/src/ui/pages/Secrets/SSH/SSH_List.tsx deleted file mode 100644 index aff6b02..0000000 --- a/src/ui/pages/Secrets/SSH/SSH_List.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { CapabilitiesType } from "../../../../api/types/capabilities"; -import { Component, JSX } from "preact"; -import { DefaultPageProps } from "../../../../types/DefaultPageProps"; -import { SecretTitleElement } from "../SecretTitleElement"; -import { delSecretsEngineURL, transitNewSecretURL, transitViewSecretURL } from "../../pageLinks"; -import { route } from "preact-router"; -import i18next from "i18next"; - -export class SSH_List extends Component { - async componentDidMount() { - const baseMount = this.props.matches["baseMount"]; - const mountsPath = "/sys/mounts/" + baseMount; - - const caps = await this.props.api.getCapabilitiesPath([mountsPath, baseMount]); - this.setState({ caps }); - } - - render() { - if (!this.state.caps) return; - const baseMount = this.props.matches["baseMount"]; - const mountsPath = "/sys/mounts/" + baseMount; - const mountCaps = this.state.caps[mountsPath]; - const sshCaps = this.state.caps[baseMount]; - - return ( - <> - - -

- {sshCaps.includes("create") && ( - - )} - {mountCaps.includes("delete") && ( - - )} -

- - ); - } -}